Example #1
0
        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));
        }
Example #2
0
 public virtual void OnMarketDepthCancel(TWSServerClientHandler client, int reqId, IBContract contract)
 {
     MarketDataCancel?.Invoke(this, new TWSMarketDataCancelEventArgs(client, reqId, contract));
 }