void OnMarketDataCancel(int reqId) { if (_marketDataSubscriptions.TryGetValue(reqId, out var contract)) { _marketDataSubscriptions.Remove(reqId); } Server?.OnMarketDataCancel(this, reqId, contract); MarketDataCancel?.Invoke(this, new TWSMarketDataCancelEventArgs(this, reqId, contract)); }
public virtual void OnMarketDepthCancel(TWSServerClientHandler client, int reqId, IBContract contract) { MarketDataCancel?.Invoke(this, new TWSMarketDataCancelEventArgs(client, reqId, contract)); }