Book order signification!

 

Hi,


When I import the book order using the market_book_get function (https://www.mql5.com/fr/docs/integration/python_metatrader5/mt5marketbookget_py). I have this output.

(BookInfo(type=1, price=1.2004299999999999, volume=250, volume_dbl=250.0), BookInfo(type=1, price=1.20037, volume... 
{'type': 1, 'price': 1.2004299999999999, 'volume': 250, 'volume_dbl': 250.0} 
{'type': 1, 'price': 1.20037, 'volume': 100, 'volume_dbl': 100.0} 
{'type': 1, 'price': 1.20036, 'volume': 50, 'volume_dbl': 50.0} 
{'type': 1, 'price': 1.20034, 'volume': 36, 'volume_dbl': 36.0} 
{'type': 2, 'price': 1.20031, 'volume': 36, 'volume_dbl': 36.0} 
{'type': 2, 'price': 1.20029, 'volume': 50, 'volume_dbl': 50.0} 
{'type': 2, 'price': 1.20028, 'volume': 100, 'volume_dbl': 100.0} 
{'type': 2, 'price': 1.20022, 'volume': 250, 'volume_dbl': 250.0} 


What the Type what does it means. The 1 and the 2

Documentation sur MQL5: Intégration / MetaTrader pour Python / market_book_get
Documentation sur MQL5: Intégration / MetaTrader pour Python / market_book_get
  • www.mql5.com
market_book_get - MetaTrader pour Python - Intégration - Référence MQL5 - Référence sur le langage de trading algorithmique/automatisé pour MetaTrader 5
 
So 1=Buy and 2=Sell order or what? Can you explain a little bit I do not have understood! Thanks a lot!
 
Honestly I don't know.

In MQL I would compare to the enumeration.

Here is the doc

But I guess you know that already.