|
楼主 |
发表于 2010-7-28 03:11 PM
|
显示全部楼层
本帖最后由 Diffusion 于 2010-7-28 17:14 编辑
reqMktDataEx() is asyn result. It triggers event to send you a piece of price at a time. You have to put them together which might not be a snapshot though.
I haven't done that yet. It seems IB API is slower although IB says it is real time. I guess the network traffic is quite heavy.
In general, IB is better than TD, at least for commision. Sometimes, TD's data is not very accurate. I don't have much experience in IB. You'd better ask those gurus in Hutong. I know there are lots of people use IB to do program trades. Most of apps using TD API are analysis based.
sd_engine 发表于 2010-7-28 14:58 
把老大在另外一个帖子里面的发言转过来.
As for reqMktDataEx(), I think one request will have 5 separate returns, each for one of OHLC, and volume. And I have to assemble them together to form a snapshot. According to the document, when ever any of OHLC or volume changed, it will send in an update of the one that changed. So I think I'll still have a real-time snapshot if I maintain all the rest. |
|