0
Answered

best ask and best bid to print

JUAN CRUZ 2 years ago updated by Андрей Ринас2 (ATAS developer) 2 years ago 1

I have asked more than once, I want to show the bestbid and the bestask, when I print the value it gives me the current price and does not take into account the spreed

Answered

If you want to get Bid/Ask for cumulative trades you need to override following method

OnCumulativeTrade(CumulativeTrade bigTrade)

If you need to receive frow of Bid/Asks you need to override 

OnBestBidAskChanged(MarketDataArg depth)