Skip to content

MarketDepthEntry.Price

property · MarketDepthEntry · cAlgo.API

DesktopCLICloud

The price of this market depth entry

Definition

double Price {get;}
marketDepthEntry.Price: float

Returns double

Examples

var marketDepth = MarketData.GetMarketDepth(SymbolName);
if (marketDepth.BidEntries.Count > 0)
    Print("First bid entry price: {0}", marketDepth.BidEntries[0].Price);
marketDepth = api.MarketData.GetMarketDepth(api.SymbolName)
if marketDepth.BidEntries.Count > 0:
    api.Print(f"First bid entry price: {marketDepth.BidEntries[0].Price}")