MarketDepth.BidEntries
property · MarketDepth · cAlgo.API
DesktopCLICloud
The total number of Bid entries
Definition
IReadonlyList<MarketDepthEntry> BidEntries {get;}
marketDepth.BidEntries: IReadonlyList[MarketDepthEntry]
Returns IReadonlyList<MarketDepthEntry>
Examples
var marketDepth = MarketData.GetMarketDepth(SymbolName);
foreach (var entry in marketDepth.BidEntries)
Print("Bid {0} for {1} units", entry.Price, entry.VolumeInUnits);
marketDepth = api.MarketData.GetMarketDepth(api.SymbolName)
for entry in marketDepth.BidEntries:
api.Print(f"Bid {entry.Price} for {entry.VolumeInUnits} units")