Gamestudio Links
Zorro Links
Newest Posts
myTMF - how to organize
by Grat. 01/23/21 17:57
Problem with Date in .t8 files
by pieran. 01/23/21 14:14
plot dash within bar
by TedMar. 01/22/21 00:36
Detrend = TRADES
by MMK. 01/21/21 09:37
Moving Average crossover
by Figurehunter. 01/20/21 21:46
AUM Magazine
Latest Screens
Scheherazade's Journey
Paradox Vector
The Space Between
Pogostuck: Rage With Your Friends
Who's Online Now
9 registered members (Quad, Eagle, Hajoha, kalmar, AndrewAMD, 3run, hast29, Dooley, 1 invisible), 497 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
pieran, Hajoha, minimeken, TraderTom, copernico
18576 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
IB TWS and IB api live data inaccuracy #481934
11/23/20 23:43
11/23/20 23:43
Joined: Apr 2019
Posts: 45
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 45
Albay
I was testing the IB live data through IB api using zorro and compare the close price between TWS chart and the one printed on zorro

I came across with this result on TSLA

```
[Mon 20-11-23 20:53] (522.13)
[Mon 20-11-23 20:54] (521.96)
[Mon 20-11-23 20:55] (521.69)
[Mon 20-11-23 20:56] (521.06)
[Mon 20-11-23 20:57] (521.47)
[Mon 20-11-23 20:58] (521.49)
[Mon 20-11-23 20:59] (521.16)
Market closed on 11-23 21:00:00 (local 16:00)
Logout.. ok



On TWS chart
[Mon 20-11-23 20:53] 521.95
[Mon 20-11-23 20:54] 521.21
[Mon 20-11-23 20:55] 520.88
[Mon 20-11-23 20:56] 521.51
[Mon 20-11-23 20:57] 521.40
[Mon 20-11-23 20:58] 521.15
[Mon 20-11-23 20:59] 521.85
```

That was the last 6 one minute bars of the log as I observed that the two doesn't usually equal. Is this normal? how do I improve the live data stream on IB?

Re: IB TWS and IB api live data inaccuracy [Re: marr] #481941
11/24/20 08:39
11/24/20 08:39
Joined: Jul 2000
Posts: 27,414
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,414
Frankfurt
Make sure to compare the same price. Prices can be ask, bid, or last.

Re: IB TWS and IB api live data inaccuracy [Re: jcl] #481942
11/24/20 10:03
11/24/20 10:03
Joined: Apr 2019
Posts: 45
Albay
M
marr Offline OP
Newbie
marr  Offline OP
Newbie
M

Joined: Apr 2019
Posts: 45
Albay
The printed above was for closing price, tried to use priceClose() which shows the same as default on log and compare to the close price of each candle on TWS chart on same one min timeframe.

I found out the pricetype default on IB was bid/ask how do I enforce to use the Last? to match with the IB TWS

Last edited by marr; 11/24/20 10:10.

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