Exemple #1
0
 public TWSHistoricalDataEventArgs(TWSClient client, int tickerId,
                                   TWSHistoricState state, DateTime date,
                                   double open, double high, double low, double close,
                                   int volume, double wap, bool hasGaps)
     : base(client)
 {
     TickerId = tickerId;
     State    = state;
     Date     = date;
     Open     = open;
     High     = high;
     Low      = low;
     Close    = close;
     Volume   = volume;
     WAP      = wap;
     HasGaps  = hasGaps;
 }
Exemple #2
0
 protected void OnHistoricalData(int tickerId, TWSHistoricState state, DateTime date, double open, double high,
                                 double low, double close, int volume, int barCount, double wap, bool hasGaps)
 {
   if (HistoricalData != null)
     HistoricalData(this, new TWSHistoricalDataEventArgs(this) {
       RequestId = tickerId,
       State = state,
       Date = date,
       Open = open,
       High = high,
       Low = low,
       Close = close,
       Volume = volume,
       WAP = wap,
       HasGaps = hasGaps,
     });
 }
Exemple #3
0
 public TWSHistoricalDataEventArgs(TWSClient client, int tickerId, 
     TWSHistoricState state, DateTime date,
     double open, double high, double low, double close,
     int volume, double wap, bool hasGaps)
     : base(client)
 {
     TickerId = tickerId;
     State = state;
     Date = date;
     Open = open;
     High = high;
     Low = low;
     Close = close;
     Volume = volume;
     WAP = wap;
     HasGaps = hasGaps;
 }
Exemple #4
0
 protected void OnHistoricalData(int reqId, TWSHistoricState state, DateTime date, double open, double high, double low, double close, int volume, double WAP, bool hasGaps)
 {
     if (HistoricalData != null)
         HistoricalData(this, new TWSHistoricalDataEventArgs(this, reqId, state, date, open, high, low, close, volume, WAP, hasGaps));
 }