Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取不到夜盘行情 #48

Closed
coldcoder126 opened this issue Aug 6, 2024 · 2 comments
Closed

获取不到夜盘行情 #48

coldcoder126 opened this issue Aug 6, 2024 · 2 comments

Comments

@coldcoder126
Copy link

func TestQuery(){
	var err error
	c, err := config.New(config.WithConfigKey(key, secret, token))
	c.EnableOvernight = true
	var qc *quote.QuoteContext
	qc, err = quote.NewFromCfg(c)
	quotes, err := qc.Quote(context.Background(), []string{"AAPL.US"})
	fmt.Println(quotes, err)
}

我是用以上代码查询,但是OverNightQuote仍然是nil,查询夜盘需要什么额外的权限吗,还是我的操作有误,望指正

@Patrick0308
Copy link
Collaborator

Patrick0308 commented Aug 21, 2024

有购买行情权限么,夜盘行情需要购买

@Patrick0308
Copy link
Collaborator

客户没有回复,如有问题可再次开启

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants