python api Bug?

Custom indicators, trading strategies, data export and recording and more...
salviador
Posts: 8
Joined: Thu Oct 15, 2020 2:32 pm

python api Bug?

Post by salviador » Tue Dec 27, 2022 10:07 am

Hi, 
I am trying the sample code "order_book_test.py" from "GitHub BookmapAPI/python-api"

but I'm detecting a problem, I have Rithmic as data provider and symbol "ESH3.CME" when I run the script it seems that I have the bitcoin book not ESH3 ???

Send Screen

In Log i have a price 15590  ??? why ?

Senza titolo.png
Senza titolo.png (379.42 KiB) Viewed 5473 times

The script this is :
https://github.com/BookmapAPI/python-ap ... ok_test.py



 

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: python api Bug?

Post by Svyatoslav » Tue Dec 27, 2022 11:11 am

Hi. You are not taking pips (min tick) into account. The numbers you are seeing are effectively level numbers (which are integers), not raw prices. You need to multiply by pips to get an actual price.

salviador
Posts: 8
Joined: Thu Oct 15, 2020 2:32 pm

Re: python api Bug?

Post by salviador » Tue Dec 27, 2022 11:18 am

Thank you for your reply

Example for "ES" ( 15590 * 0.25 )
Is it correct ?

Svyatoslav
Site Admin
Posts: 278
Joined: Mon Jun 11, 2018 11:44 am
Has thanked: 2 times
Been thanked: 31 times

Re: python api Bug?

Post by Svyatoslav » Tue Dec 27, 2022 11:18 am

Yes

Post Reply