How to get Bid/Ask volume.

 
If I'm not mistaken, you should be able to see bid/ask volume via market depth. But how do I get the bid volume and ask volume from MQL code?
 
Nimoonphob noobiris: If I'm not mistaken, you should be able to see bid/ask volume via market depth. But how do I get the bid volume and ask volume from MQL code?

By using the SymbolInfoTick functin you can obtain MqlTick information, which includes volume, paying careful attention to the flags.

You can also obtain MqlBookInfo information with the MarketBookGet function, and react to OnBookEvent() events subscribed to with MarketBookAdd().