MarketDepth.unsubscribe()

ICE Data Services -

MarketDepth.unsubscribe() Depth Functions

Unsubscribes from Depth data.
Syntax
MarketDepth.unsubscribe( DepthId )
Parameters
Parameter: Description: Default:
DepthId Required.  Number representing the specified ID for the depth.

 

n/a Notes
Only available in versions 11.7 or later.
Code Examples
var bInit = false;var depthID = null;function main(){    var SourceList = MarketDepth.getSources();             if ((!bInit) && (SourceList != null)){        depthID = MarketDepth.subscribe(SourceList[0])        bInit = true;    }	    ...}function onMarketDepthUpdate(depthID){    debugPrintln("Depthbid: " + MarketDepth.bid(depthID, 0));    debugPrintln("DepthbidTime: " + MarketDepth.bidTime(depthID, 0));            MarketDepth.unsubscribe(
depthID); } See Also
MarketDepth.subscribe