FutunnOpen / py-futu-api

富途 OpenAPI Python SDK
Apache License 2.0
1.04k stars 221 forks source link

Error getting Stock Option price #108

Closed beanyip closed 2 years ago

beanyip commented 2 years ago

quote_ctx.subscribe(['HK.HHImain','ALB220225P105000'], [SubType.ORDER_BOOK, SubType.QUOTE])

我开通了期权: LV1, 想用实时报价回调以上的指數和期权, 但程序停了沒能跑下去:

2021-11-30 11:04:45,144 | 7200 | [open_context_base.py] _send_init_connect_sync:311: InitConnect ok: conn_id=1, host=127.0.0.1, port=11111, user_id=17311346

junmo1215 commented 2 years ago

quote_ctx.subscribe(['HK.HHImain','ALB220225P105000'], [SubType.ORDER_BOOK, SubType.QUOTE])

我开通了期权: LV1, 想用实时报价回调以上的指數和期权, 但程序停了沒能跑下去:

2021-11-30 11:04:45,144 | 7200 | [open_context_base.py] _send_init_connect_sync:311: InitConnect ok: conn_id=1, host=127.0.0.1, port=11111, user_id=17311346

看上去ALB220225P105000这个代码没有带上市场,应该订阅会失败。在前面加上US.或者HK.