コード例 #1
0
 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); };
 }
コード例 #2
0
 public TDAmeritradeStreamClient(TDAmeritradeClient client)
 {
     _client = client;
     _cancel = new CancellationTokenSource();
 }