由买买提看人间百态

topics

全部话题 - 话题: ewrapper
(共0页)
c*****o
发帖数: 1702
1
For example if I want to get real time bar
on the API guide, it is said that "Call the reqRealTimeBars() method to
start receiving real time bar results through the realtimeBar() EWrapper
method"
but here realtimeBar() function has void return. So I assume the data is
saved into the EWrapper object.
Can anybody show me how do we get the real time bar data here? And do I need
to call realtimeBar()?
c*****o
发帖数: 1702
2
【 以下文字转载自 Stock 讨论区 】
发信人: catmiao (努力成为数据人才), 信区: Stock
标 题: Re: 谁用过IB的API没,请问市场数据怎么从API拿出来?
发信站: BBS 未名空间站 (Tue Nov 12 17:15:32 2013, 美东)
For example if I want to get real time bar
on the API guide, it is said that "Call the reqRealTimeBars() method to
start receiving real time bar results through the realtimeBar() EWrapper
method"
but here realtimeBar() function has void return. So I assume the data is
saved into the EWrapper object.
Can anybody show me how do we get the real time bar data h... 阅读全帖
c*****o
发帖数: 1702
3
是从Ewrapper 里call吗? 如果在例子里的是SampleFrame

int reqId=1;
long time=0;
double open=0;
double high=0;
double low=0;
double close=0;
long volume=0;
double wap=0;
int count=0;
sampleFrame test;
test.m_client.reqRealTimeBars(1, test, 5,"MIDPOINT", true);
test.realtimeBar(1, time, open, high, low, close, volume, wap, count);
这样做的话,open这些参数不会被realtimebar改变。请问具体怎么操作阿
(共0页)