vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
522 stars 281 forks source link

MT5 - MarketBookGet Error #91

Closed marcopipino closed 6 years ago

marcopipino commented 6 years ago

Hi, When i execute MarketBookGet only first element is filled on array , the others came null . error

vdemydiuk commented 6 years ago

There is very stupid mistake in code of function MarketBookGet (MtApi5Client); foreach (var t in retVal) { book[0] = new MqlBookInfo((ENUM_BOOK_TYPE)t.type, t.price, t.volume); } I will fix it in version 1.0.17.