MarketDepth.isConnected()

ICE Data Services -

MarketDepth.isConnected() Depth Functions

Returns true/false based on whether or not the depth source is currently connected.
Syntax
MarketDepth.isConnected( 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 depthID = null;function main(){    var SourceList = MarketDepth.getSources();            if (SourceList != null){             depthID = MarketDepth.subscribe(SourceList[0]);			if (MarketDepth.isConnected(depthID))			debugPrintln("DepthSource: " + MarketDepth.source(depthID) + " is connected");		    }	    ...}
See Also
MarketDepth.connection