Skip to content

ppInstrumentID 只能用静态字符串 #7

@sunnyboy00

Description

@sunnyboy00
             var code string
	fmt.Println("输入行情监控合约代码")
	fmt.Scanln(&code)
	code = strings.ToLower(code)

	//ppInstrumentID := []string{code}

	ppInstrumentID := []string{"rb1901"}

	log.Println(" ppInstrumentID", ppInstrumentID)
	p.SubscribeMarketData(ppInstrumentID)

如果采用注释的//ppInstrumentID := []string{code},通不过,怎么才能绕开这个坑

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions