openapi-sdk icon indicating copy to clipboard operation
openapi-sdk copied to clipboard

OpenApi SDK 中enable_overnight=True开启夜盘行情不生效

Open poutous opened this issue 11 months ago • 2 comments

问题描述

OpenApi SDK 中enable_overnight=True开启夜盘行情不生效

代码例子

from longport.openapi import QuoteContext, Config
ctx = QuoteContext(Config(enable_overnight=True,app_key="your_app_key", app_secret="your_app_secret", access_token="your_access_token"))
resp = ctx.quote([ "FFIE.US"])
print(resp)

错误信息或结果截图

Image

你的环境信息

  • 操作系统: macOS
  • 开发语言: Python
  • SDK 版本号:
Image

poutous avatar Feb 24 '25 13:02 poutous

我也有这个问题,夜盘信息返回none,现在你解决没?还是需要开通啥

njt1340953658 avatar Apr 09 '25 06:04 njt1340953658

@njt1340953658 @poutous You should subscribe to US stock L1 market data which contains the night trading indexes.

safiir avatar Apr 16 '25 07:04 safiir

由于没有活动,此问题已关闭。如果您仍遇到此问题,请打开一个新问题并附上此问题的链接。 This issue was closed due to inactivity. If you still encounter this issue, please open a new issue and link to this issue. Thank you.

github-actions[bot] avatar Sep 01 '25 03:09 github-actions[bot]