Table of Contents

Property OnDisconnectedAsync

Namespace
WhalesSecret.TradeScriptLib.API.TradingV1
Assembly
WhalesSecret.TradeScriptLib.dll

OnDisconnectedAsync

Callback called when connection with the remote exchange market is lost, or null if not set.

public ConnectionOptions.OnDisconnectedDelegateAsync? OnDisconnectedAsync { get; init; }

Property Value

ConnectionOptions.OnDisconnectedDelegateAsync

Remarks

All or nothing principle is taken here. Meaning, if an exchange provides a set of API components needed to provide fully-fledged trading experience and one of them starts failing to operate, we will fire a disconnect event to timely warn that something is not right.

The callback is called in a blocking way so it should finish as soon as possible to avoid delaying other operations.