MarketDepth.bid()

ICE Data Services -

MarketDepth.bid(), MarketDepth.ask() Depth Functions

Returns bid or ask price for the specified depth element.
Syntax
MarketDepth.bid( DepthId, Index )
MarketDepth.ask( DepthId, Index )
Parameters
Parameter: Description: Default:
DepthId Required.  Number representing the specified ID for the depth.

 

n/a Index Required.  Number of element in the depth.

 

n/a
Notes
Only available in versions 11.7 or later.
Code Examples
var depthID = null;function main(){    var SourceList = MarketDepth.getSources();            if (SourceList != null){         depthID = MarketDepth.subscribe(SourceList[0]);			debugPrintln("DepthBid: " + MarketDepth.bid(depthID, 0));	debugPrintln("DepthAsk: " + MarketDepth.ask(depthID, 0));    }	    ...}
See Also
MarketDepth.bidCount MarketDepth.bidSize MarketDepth.askTime