c*o
3 楼
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()?
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
4 楼
就是realtimebar怎么拿出来啊,这个wrapper哪存数据啊。求有经验的指点
c*o
6 楼
你那源代码有人买过了没?
c*o
7 楼
牛刀不要这么小气嘛,指点下?
f*r
9 楼
This is standard publisher/subscriber design pattern. realtimeBar() function
will be called every time new market data is coming. You can simply put a
print function into it and you will see it continues printing out the market
data. How do you want to save it depends how you plan to use it. The easiest
way is created a buffer in memory to store the data. Once the buffer goes
full, dump it to the database and clear the buffer. If you want to use
algorithm to process the data, you can use socket to send out the data or
simply use JMS.
will be called every time new market data is coming. You can simply put a
print function into it and you will see it continues printing out the market
data. How do you want to save it depends how you plan to use it. The easiest
way is created a buffer in memory to store the data. Once the buffer goes
full, dump it to the database and clear the buffer. If you want to use
algorithm to process the data, you can use socket to send out the data or
simply use JMS.
c*o
10 楼
请问print什么? 我用的java
public static String realtimeBar(int reqId, long time, double open,
double high, double low, double close, long volume, double wap, int count)
这个function 需要我自己call吗。
public static String realtimeBar(int reqId, long time, double open,
double high, double low, double close, long volume, double wap, int count)
这个function 需要我自己call吗。
c*o
11 楼
有点弄明白是咋回事了。我太2了,没看出来是publisher/subscriber
相关阅读