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; }
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, }); }
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)); }