Redian新闻
>
谁用过IB的API没,请问市场数据怎么从API拿出来?
avatar
谁用过IB的API没,请问市场数据怎么从API拿出来?# Stock
c*o
1
股板牛人无数,指点下小弟!
avatar
c*t
2
这么基本的功能你要是从reference和sample里读不出来的话,就算给你说了也没用啊

【在 c*****o 的大作中提到】
: 股板牛人无数,指点下小弟!
avatar
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()?
avatar
c*o
4
就是realtimebar怎么拿出来啊,这个wrapper哪存数据啊。求有经验的指点
avatar
b*e
5
是老猫?$50美金包你今晚学会,附源代码。

【在 c*****o 的大作中提到】
: 就是realtimebar怎么拿出来啊,这个wrapper哪存数据啊。求有经验的指点
avatar
c*o
6
你那源代码有人买过了没?
avatar
c*o
7
牛刀不要这么小气嘛,指点下?
avatar
b*e
8
你用的什么语言啊?

【在 c*****o 的大作中提到】
: 牛刀不要这么小气嘛,指点下?
avatar
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.
avatar
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吗。
avatar
c*o
11
有点弄明白是咋回事了。我太2了,没看出来是publisher/subscriber
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。