Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Quad, EternallyCurious, 1 invisible), 726 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
IB_contractPrice() and contractRecord() speed improvement #475473
12/12/18 16:33
12/12/18 16:33
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
JCL,

Zorro requests price snapshots sequentially, i.e. the next request is triggered not earlier than the "tickSnapshotEnd' is received.

With 1 request-response taking 1.5-5sec per opt.contract,a chain update takes forever.

The way to make it work fast is to fire *many* requests at once.
IB API allows for 100 snapshot requests/sec (or rather 500 requests/5sec).
So, a working chain of 200-300 contracts can be updated with data within 5sec.

I just tried it the API sample client app - and it works internally exactly in this way!

Zorro/IB plugin just need to take care of pacing of requests, which in the recent IB API version is taken care of automatically via (+PACE) option.

https://groups.io/g/twsapi/topic/paceapi_works_fine/28215139?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,40,28215139

I also read an opinion that NOT using snapshots works faster, but this needs to be tested..

Can this change be implemented?
Pleease...

Re: IB_contractPrice() and contractRecord() speed improvement [Re: Zheka] #475488
12/14/18 13:09
12/14/18 13:09
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Yes, the next IB plugin revision will change to the latest API version, and various changes including parallel snapshots are planned. Probably around April/May next year.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1