c*****o 发帖数: 1702 | |
c****t 发帖数: 5452 | 2 这么基本的功能你要是从reference和sample里读不出来的话,就算给你说了也没用啊
【在 c*****o 的大作中提到】 : 股板牛人无数,指点下小弟!
|
c*****o 发帖数: 1702 | 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()? |
c*****o 发帖数: 1702 | 4 就是realtimebar怎么拿出来啊,这个wrapper哪存数据啊。求有经验的指点 |
b*******e 发帖数: 6389 | 5 是老猫?$50美金包你今晚学会,附源代码。
【在 c*****o 的大作中提到】 : 就是realtimebar怎么拿出来啊,这个wrapper哪存数据啊。求有经验的指点
|
c*****o 发帖数: 1702 | |
c*****o 发帖数: 1702 | |
b*******e 发帖数: 6389 | 8 你用的什么语言啊?
【在 c*****o 的大作中提到】 : 牛刀不要这么小气嘛,指点下?
|
f********r 发帖数: 304 | 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. |
c*****o 发帖数: 1702 | 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吗。 |
c*****o 发帖数: 1702 | 11 有点弄明白是咋回事了。我太2了,没看出来是publisher/subscriber |