public TDAmeritradeStreamClient(TDAmeritradeClient client) { _client = client; _parser = new TDStreamJsonProcessor(); _parser.OnHeartbeatSignal += o => { OnHeartbeatSignal(o); }; _parser.OnChartSignal += o => { OnChartSignal(o); }; _parser.OnQuoteSignal += o => { OnQuoteSignal(o); }; _parser.OnTimeSaleSignal += o => { OnTimeSaleSignal(o); }; _parser.OnBookSignal += o => { OnBookSignal(o); }; }
public TDAmeritradeStreamClient(TDAmeritradeClient client) { _client = client; _cancel = new CancellationTokenSource(); }