MarketDepth.bidSize(), MarketDepth.askSize()
Returns bid or ask size for the specified depth element.
Syntax
MarketDepth.bidSize( DepthId , Index )
MarketDepth.askSize( 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("DepthBidSize: " + MarketDepth.bidSize(depthID, 0)); debugPrintln("DepthAskSize: " + MarketDepth.askSize(depthID, 0)); }... }
See Also