r*m
2 楼
别往火坑里跳
S*t
6 楼
好像google有个:
http://code.google.com/apis/finance/
但是那上面说:
The Google Finance API has been officially deprecated as of May 26, 2011 to
reflect that it's no longer undergoing active development and
experimentation, which is the hallmark of APIs in the Code Labs program.
【在 s**********l 的大作中提到】
: yahoo
c*t
10 楼
I thought they still require TOFEL these days.
m*0
19 楼
C++ api of IB is not that easy.
Jave API is much easy to begin.
Nevertheless, I am using it's POSIX C++ API now.
http://www.maxdama.com/?p=347
Based on IB, the test program is sync.
if( m_pClient->fd() >= 0 ) {
FD_ZERO( &readSet);
errorSet = writeSet = readSet;
FD_SET( m_pClient->fd(), &readSet);
if( !m_pClient->isOutBufferEmpty())
FD_SET( m_pClient->fd(), &writeSet);
FD_CLR( m_pClient->fd(), &errorSet);
int ret = select( m_pClient->fd() + 1, &readSet, &writeSet, &
errorSet, &tval);
if( ret == 0) { // timeout
return;
}
if( ret < 0) { // error
disconnect();
return;
}
if( m_pClient->fd() < 0)
return;
if( FD_ISSET( m_pClient->fd(), &errorSet)) {
// error on socket
m_pClient->onError();
}
if( m_pClient->fd() < 0)
return;
if( FD_ISSET( m_pClient->fd(), &writeSet)) {
// socket is ready for writing
m_pClient->onSend();
}
if( m_pClient->fd() < 0)
return;
if( FD_ISSET( m_pClient->fd(), &readSet)) {
// socket is ready for reading
m_pClient->onReceive();
}
}
I use ibpy too, takes 1/5 time to develop an automatic system for me.
But multithreading is pain for Python.
I might post a scalping system on github when I think it's proper.
【在 S***t 的大作中提到】
: 哪个API比较好?如果用C++的话?
: 实时data feed从哪里来?
Jave API is much easy to begin.
Nevertheless, I am using it's POSIX C++ API now.
http://www.maxdama.com/?p=347
Based on IB, the test program is sync.
if( m_pClient->fd() >= 0 ) {
FD_ZERO( &readSet);
errorSet = writeSet = readSet;
FD_SET( m_pClient->fd(), &readSet);
if( !m_pClient->isOutBufferEmpty())
FD_SET( m_pClient->fd(), &writeSet);
FD_CLR( m_pClient->fd(), &errorSet);
int ret = select( m_pClient->fd() + 1, &readSet, &writeSet, &
errorSet, &tval);
if( ret == 0) { // timeout
return;
}
if( ret < 0) { // error
disconnect();
return;
}
if( m_pClient->fd() < 0)
return;
if( FD_ISSET( m_pClient->fd(), &errorSet)) {
// error on socket
m_pClient->onError();
}
if( m_pClient->fd() < 0)
return;
if( FD_ISSET( m_pClient->fd(), &writeSet)) {
// socket is ready for writing
m_pClient->onSend();
}
if( m_pClient->fd() < 0)
return;
if( FD_ISSET( m_pClient->fd(), &readSet)) {
// socket is ready for reading
m_pClient->onReceive();
}
}
I use ibpy too, takes 1/5 time to develop an automatic system for me.
But multithreading is pain for Python.
I might post a scalping system on github when I think it's proper.
【在 S***t 的大作中提到】
: 哪个API比较好?如果用C++的话?
: 实时data feed从哪里来?
m*0
20 楼
S*t
21 楼
WOW, this seems to be some real stuff!
【在 m********0 的大作中提到】
: C++ api of IB is not that easy.
: Jave API is much easy to begin.
: Nevertheless, I am using it's POSIX C++ API now.
: http://www.maxdama.com/?p=347
: Based on IB, the test program is sync.
: if( m_pClient->fd() >= 0 ) {
: FD_ZERO( &readSet);
: errorSet = writeSet = readSet;
: FD_SET( m_pClient->fd(), &readSet);
: if( !m_pClient->isOutBufferEmpty())
S*t
22 楼
S*t
23 楼
POSIX C++ API 好像是在 Linux 系统上的?
这方面用Linux有啥特别的好处吗?
【在 m********0 的大作中提到】
: C++ api of IB is not that easy.
: Jave API is much easy to begin.
: Nevertheless, I am using it's POSIX C++ API now.
: http://www.maxdama.com/?p=347
: Based on IB, the test program is sync.
: if( m_pClient->fd() >= 0 ) {
: FD_ZERO( &readSet);
: errorSet = writeSet = readSet;
: FD_SET( m_pClient->fd(), &readSet);
: if( !m_pClient->isOutBufferEmpty())
这方面用Linux有啥特别的好处吗?
【在 m********0 的大作中提到】
: C++ api of IB is not that easy.
: Jave API is much easy to begin.
: Nevertheless, I am using it's POSIX C++ API now.
: http://www.maxdama.com/?p=347
: Based on IB, the test program is sync.
: if( m_pClient->fd() >= 0 ) {
: FD_ZERO( &readSet);
: errorSet = writeSet = readSet;
: FD_SET( m_pClient->fd(), &readSet);
: if( !m_pClient->isOutBufferEmpty())
m*0
24 楼
Most top funds hires real tech geeks to implement ATS.
and these guys are mostly using Linux,
besides, you are able to tune Linux kernel to boost your performance.
Windows does not have such flexibility.
Especially for ppl doing HFEMM, their algorithms are built in
programmable circuit
【在 S***t 的大作中提到】
: POSIX C++ API 好像是在 Linux 系统上的?
: 这方面用Linux有啥特别的好处吗?
and these guys are mostly using Linux,
besides, you are able to tune Linux kernel to boost your performance.
Windows does not have such flexibility.
Especially for ppl doing HFEMM, their algorithms are built in
programmable circuit
【在 S***t 的大作中提到】
: POSIX C++ API 好像是在 Linux 系统上的?
: 这方面用Linux有啥特别的好处吗?
c*i
26 楼
anyone start to use asic to do the algorithms?
【在 m********0 的大作中提到】
: Most top funds hires real tech geeks to implement ATS.
: and these guys are mostly using Linux,
: besides, you are able to tune Linux kernel to boost your performance.
: Windows does not have such flexibility.
: Especially for ppl doing HFEMM, their algorithms are built in
: programmable circuit
【在 m********0 的大作中提到】
: Most top funds hires real tech geeks to implement ATS.
: and these guys are mostly using Linux,
: besides, you are able to tune Linux kernel to boost your performance.
: Windows does not have such flexibility.
: Especially for ppl doing HFEMM, their algorithms are built in
: programmable circuit
S*t
27 楼
赞专业级答复!
IB API sample code seems to be for windows platform. I'm ok with Linux but
using Linux would cost me much more time to get started... After all HFEMM
might be too big a task for an individual developer. Currently I'm thinking
to focus on the strategy part and only go toward high frequency if there's a
big team or institution...
【在 m********0 的大作中提到】
: Most top funds hires real tech geeks to implement ATS.
: and these guys are mostly using Linux,
: besides, you are able to tune Linux kernel to boost your performance.
: Windows does not have such flexibility.
: Especially for ppl doing HFEMM, their algorithms are built in
: programmable circuit
S*y
30 楼
what is HFEMM?
【在 m********0 的大作中提到】
: Most top funds hires real tech geeks to implement ATS.
: and these guys are mostly using Linux,
: besides, you are able to tune Linux kernel to boost your performance.
: Windows does not have such flexibility.
: Especially for ppl doing HFEMM, their algorithms are built in
: programmable circuit
【在 m********0 的大作中提到】
: Most top funds hires real tech geeks to implement ATS.
: and these guys are mostly using Linux,
: besides, you are able to tune Linux kernel to boost your performance.
: Windows does not have such flexibility.
: Especially for ppl doing HFEMM, their algorithms are built in
: programmable circuit
m*0
32 楼
I am not suggesting anything high frequency.
with all these brokers, you don't have any chance to do high frequency.
You will need co-location to these servers, most of them in NJ.
at least direct connection to the exchange.
For me windows platform has longer learning curves.
I think linux POSIX is clearer, much more room to go.
As stated above, many brokers has C++ API, and IB is far from the
best of them in terms of API. But it's improving.
My primary reason for an ATS is: I am not as self-disciplined as I
thought. I have risk control problems mentally.
And discretionary trading distracts me from daily work. I knew a
guy indirectly wrote an ATS, made 3M out of 200K in a year individually.
I was told by my manager, this is not typical "top four bbs famous ppl".
but
HFEMM
thinking
there's
a
【在 S***t 的大作中提到】
:
: asic = Application-specific integrated circuit?
: That's sounds too pro...
with all these brokers, you don't have any chance to do high frequency.
You will need co-location to these servers, most of them in NJ.
at least direct connection to the exchange.
For me windows platform has longer learning curves.
I think linux POSIX is clearer, much more room to go.
As stated above, many brokers has C++ API, and IB is far from the
best of them in terms of API. But it's improving.
My primary reason for an ATS is: I am not as self-disciplined as I
thought. I have risk control problems mentally.
And discretionary trading distracts me from daily work. I knew a
guy indirectly wrote an ATS, made 3M out of 200K in a year individually.
I was told by my manager, this is not typical "top four bbs famous ppl".
but
HFEMM
thinking
there's
a
【在 S***t 的大作中提到】
:
: asic = Application-specific integrated circuit?
: That's sounds too pro...
m*0
36 楼
I think my alternate is suitable for my situation.
Based on my observation of myself, I think it takes years
or conquer it and life is short.
There are ppl who are able to handle it from
the every beginning, I am not born that way.
Writing automatic trading system is not an obstacle for me.
and I have stated a second reason. And it's fun for me.
【在 c**t 的大作中提到】
: try to solve the problem, not change it.
Based on my observation of myself, I think it takes years
or conquer it and life is short.
There are ppl who are able to handle it from
the every beginning, I am not born that way.
Writing automatic trading system is not an obstacle for me.
and I have stated a second reason. And it's fun for me.
【在 c**t 的大作中提到】
: try to solve the problem, not change it.
S*t
37 楼
Thanks for the detailed post!
Linux does have some advantage like open-source, less virus, totally free,
no reboot needs, no blue-screen system lock-down etc. ...
Emotion detached is one of ATS's advantage it seems:p
【在 m********0 的大作中提到】
: I am not suggesting anything high frequency.
: with all these brokers, you don't have any chance to do high frequency.
: You will need co-location to these servers, most of them in NJ.
: at least direct connection to the exchange.
: For me windows platform has longer learning curves.
: I think linux POSIX is clearer, much more room to go.
: As stated above, many brokers has C++ API, and IB is far from the
: best of them in terms of API. But it's improving.
: My primary reason for an ATS is: I am not as self-disciplined as I
: thought. I have risk control problems mentally.
c*t
39 楼
OK, maybe you are a better programmer.
but I found a lot of market conditions are too hard to code.
and it keep changing as well.
The setup is simple, but using the same setup and consistently making money
is a different story.
【在 m********0 的大作中提到】
: I think my alternate is suitable for my situation.
: Based on my observation of myself, I think it takes years
: or conquer it and life is short.
: There are ppl who are able to handle it from
: the every beginning, I am not born that way.
: Writing automatic trading system is not an obstacle for me.
: and I have stated a second reason. And it's fun for me.
but I found a lot of market conditions are too hard to code.
and it keep changing as well.
The setup is simple, but using the same setup and consistently making money
is a different story.
【在 m********0 的大作中提到】
: I think my alternate is suitable for my situation.
: Based on my observation of myself, I think it takes years
: or conquer it and life is short.
: There are ppl who are able to handle it from
: the every beginning, I am not born that way.
: Writing automatic trading system is not an obstacle for me.
: and I have stated a second reason. And it's fun for me.
V*n
40 楼
No, not at all! They don't even have a C# API for their customer. You will
have to go for the third-part wrapped API: dinosaur C# API, if you prefer
the .net environment, check the link pls:
http://www.dinosaurtech.com/utilities/
【在 S***t 的大作中提到】
:
: Thanks for the detailed post!
: Linux does have some advantage like open-source, less virus, totally free,
: no reboot needs, no blue-screen system lock-down etc. ...
: Emotion detached is one of ATS's advantage it seems:p
have to go for the third-part wrapped API: dinosaur C# API, if you prefer
the .net environment, check the link pls:
http://www.dinosaurtech.com/utilities/
【在 S***t 的大作中提到】
:
: Thanks for the detailed post!
: Linux does have some advantage like open-source, less virus, totally free,
: no reboot needs, no blue-screen system lock-down etc. ...
: Emotion detached is one of ATS's advantage it seems:p
V*n
41 楼
This is really COOL!
【在 m********0 的大作中提到】
: I think my alternate is suitable for my situation.
: Based on my observation of myself, I think it takes years
: or conquer it and life is short.
: There are ppl who are able to handle it from
: the every beginning, I am not born that way.
: Writing automatic trading system is not an obstacle for me.
: and I have stated a second reason. And it's fun for me.
【在 m********0 的大作中提到】
: I think my alternate is suitable for my situation.
: Based on my observation of myself, I think it takes years
: or conquer it and life is short.
: There are ppl who are able to handle it from
: the every beginning, I am not born that way.
: Writing automatic trading system is not an obstacle for me.
: and I have stated a second reason. And it's fun for me.
g*5
42 楼
股神mm今天修脚阿?
【在 m********0 的大作中提到】
: C++ api of IB is not that easy.
: Jave API is much easy to begin.
: Nevertheless, I am using it's POSIX C++ API now.
: http://www.maxdama.com/?p=347
: Based on IB, the test program is sync.
: if( m_pClient->fd() >= 0 ) {
: FD_ZERO( &readSet);
: errorSet = writeSet = readSet;
: FD_SET( m_pClient->fd(), &readSet);
: if( !m_pClient->isOutBufferEmpty())
【在 m********0 的大作中提到】
: C++ api of IB is not that easy.
: Jave API is much easy to begin.
: Nevertheless, I am using it's POSIX C++ API now.
: http://www.maxdama.com/?p=347
: Based on IB, the test program is sync.
: if( m_pClient->fd() >= 0 ) {
: FD_ZERO( &readSet);
: errorSet = writeSet = readSet;
: FD_SET( m_pClient->fd(), &readSet);
: if( !m_pClient->isOutBufferEmpty())
c*t
43 楼
you can use the activeX control included for VB.net directly in C#, pretty
straightforward
【在 V********n 的大作中提到】
: No, not at all! They don't even have a C# API for their customer. You will
: have to go for the third-part wrapped API: dinosaur C# API, if you prefer
: the .net environment, check the link pls:
: http://www.dinosaurtech.com/utilities/
straightforward
【在 V********n 的大作中提到】
: No, not at all! They don't even have a C# API for their customer. You will
: have to go for the third-part wrapped API: dinosaur C# API, if you prefer
: the .net environment, check the link pls:
: http://www.dinosaurtech.com/utilities/
S*t
45 楼
赞大牛风范!
#1 reason for me to try to build a ATS is to learn sth
If it turns out to be profitable all the better:p
【在 m********0 的大作中提到】
: I think my alternate is suitable for my situation.
: Based on my observation of myself, I think it takes years
: or conquer it and life is short.
: There are ppl who are able to handle it from
: the every beginning, I am not born that way.
: Writing automatic trading system is not an obstacle for me.
: and I have stated a second reason. And it's fun for me.
S*t
46 楼
要是不用写程序,有类似菜单的ATS就好了。
比如说10ma>20ma时就启动买单什么的。
我想将来会有的吧?
【在 m********0 的大作中提到】
: I am not suggesting anything high frequency.
: with all these brokers, you don't have any chance to do high frequency.
: You will need co-location to these servers, most of them in NJ.
: at least direct connection to the exchange.
: For me windows platform has longer learning curves.
: I think linux POSIX is clearer, much more room to go.
: As stated above, many brokers has C++ API, and IB is far from the
: best of them in terms of API. But it's improving.
: My primary reason for an ATS is: I am not as self-disciplined as I
: thought. I have risk control problems mentally.
比如说10ma>20ma时就启动买单什么的。
我想将来会有的吧?
【在 m********0 的大作中提到】
: I am not suggesting anything high frequency.
: with all these brokers, you don't have any chance to do high frequency.
: You will need co-location to these servers, most of them in NJ.
: at least direct connection to the exchange.
: For me windows platform has longer learning curves.
: I think linux POSIX is clearer, much more room to go.
: As stated above, many brokers has C++ API, and IB is far from the
: best of them in terms of API. But it's improving.
: My primary reason for an ATS is: I am not as self-disciplined as I
: thought. I have risk control problems mentally.
B*n
54 楼
系统后面肯定需要offline pipeline作数据分析.rule based系统是比较难,因为市场会
慢慢的改变和自我学习,用众所周知的信号一般不行.也可以试试用机器学习来adapt市
场的变化.
money
【在 c**t 的大作中提到】
: OK, maybe you are a better programmer.
: but I found a lot of market conditions are too hard to code.
: and it keep changing as well.
: The setup is simple, but using the same setup and consistently making money
: is a different story.
慢慢的改变和自我学习,用众所周知的信号一般不行.也可以试试用机器学习来adapt市
场的变化.
money
【在 c**t 的大作中提到】
: OK, maybe you are a better programmer.
: but I found a lot of market conditions are too hard to code.
: and it keep changing as well.
: The setup is simple, but using the same setup and consistently making money
: is a different story.
相关阅读
疯子,又见疯子茶就凉告别赛龙霸来了韩剧狗血的原因找到了 (转载)目前为止还是一个猪。啥时候满大街跑的都是菲亚特,BBA,啥时候欧债危机也就到头了国资委:央企要做好3至5年过寒冬准备 (转载)他以后是不是可以尝试演总理? (转载)足球界都说欧洲无弱旅这周还有哪些数据出来?should we cut TZA, TVIX NOW?????我第二波ANR put已经盈利了。213太多,看不下去了,发个炒股秘籍。股神们说说,要继续全仓无脑爆乳TVIX,UVXY吗?现在市场没有正义感煤炭今天爽了日本下院批准销售税翻番减少国债中国崩溃论A Con Man Who Lives Between Truth And Fiction蝌蚪一问:为什么TVIX的52周最高价是109.14,现在都跌成5块多了?