FutunnOpen / py-futu-api

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

get_market_snapshot() 获取美股数据时超时! #43

Closed manmadewind closed 4 years ago

manmadewind commented 4 years ago

get_market_snapshot()接口获取美股数据时95%概率失败,少数股票才成功。 例如:quote_ctx.get_market_snapshot(['US.TSLA']) 得到返回:(-1, 'NN_ProtoRet_TimeOut')

获取A股和港股正常。

a14843 commented 4 years ago

I also see the same NN_ProtoRet_TimeOut issue. Should I try increasing the timeout?

Script used: examples/loop_get_mkt_sanpshot.py Version used: 3.21 (pip install futu-api) Log:

2020-05-24 13:01:28,678 [open_context_base.py] _socket_reconnect_and_wait_ready:257: Start connecting: host=127.0.0.1; port=11111; 2020-05-24 13:01:28,678 [network_manager.py] work:366: Close: conn_id=1 2020-05-24 13:01:28,679 [open_context_base.py] on_connected:346: Connected : conn_id=2; 2020-05-24 13:01:28,680 [open_context_base.py] _handle_init_connect:447: InitConnect ok: conn_id=2; info={'server_version': 212, 'login_user_id': SKIPPED ..., 'keep_alive_interval': 10, 'is_encrypt': False}; get_stock_basicinfo: market=US, sub_type=STOCK, count=8880 get_stock_basicinfo: market=US, sub_type=IDX, count=520 get_stock_basicinfo: market=US, sub_type=ETF, count=2863 get_stock_basicinfo: market=US, sub_type=WARRANT, count=0 get_stock_basicinfo: market=US, sub_type=BOND, count=0 from 1, total 12263 NN_ProtoRet_TimeOut from 201, total 12263 NN_ProtoRet_TimeOut from 401, total 12263 NN_ProtoRet_TimeOut ...

Vankeee commented 4 years ago

解决了吗?现在还会超时吗

hughex commented 4 years ago

尊敬的用户您好,富途于 7 月 1 日正式上线了仅适用于 OpenAPI 的美股 Nasdaq Basic 行情卡。您可以通过网页端的行情商城自行购买并激活,激活后须配合 FutuOpenD 2.14.1000 以上的版本使用。行情卡购买链接点击:https://qtcard.futu5.com/buy?market_id=2&channel=2

------------------ 原始邮件 ------------------ 发件人: "acwchang"<notifications@github.com>; 发送时间: 2020年7月6日(星期一) 下午3:04 收件人: "FutunnOpen/py-futu-api"<py-futu-api@noreply.github.com>; 抄送: "Subscribed"<subscribed@noreply.github.com>; 主题: Re: [FutunnOpen/py-futu-api] get_market_snapshot() 获取美股数据时超时! (#43)

解决了吗?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

PeopleComeAndGo commented 4 years ago

@hughex 是不是买lv1 全美综合报价这个,就可以获得美股实时行情数据了?

hughex commented 4 years ago

尊敬的用户您好,富途于 7 月 1 日正式上线了仅适用于 OpenAPI 的美股 Nasdaq Basic 行情卡。您可以通过网页端的行情商城自行购买并激活,激活后须配合 FutuOpenD 2.14.1000 以上的版本使用。行情卡购买链接点击:https://qtcard.futu5.com/buy?market_id=2&amp;channel=2 ------------------ 原始邮件 ------------------ 发件人: "FutunnOpen/py-futu-api" <notifications@github.com>; 发送时间: 2020年8月28日(星期五) 晚上11:02 收件人: "FutunnOpen/py-futu-api"<py-futu-api@noreply.github.com>; 抄送: "休"<384862429@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [FutunnOpen/py-futu-api] get_market_snapshot() 获取美股数据时超时! (#43)

@hughex 是不是买lv1 全美综合报价这个,就可以获得美股实时行情数据了?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

FutunnOpen commented 4 years ago

https://qtcard.futu5.com/buy?market_id=2&amp;channel=2行情卡就可以获取到美股实时行情数据