/// <inheritdoc/> public void realtimeBar(int reqId, long time, double open, double high, double low, double close, long volume, double WAP, int count) { var eventArgs = new RealtimeBarEventArgs(reqId, time, open, high, low, close, volume, WAP, count); this.RealtimeBarEvent?.Invoke(this, eventArgs); }
/// <summary> /// RealtimeBar event invocator /// </summary> protected virtual void OnRealtimeBar(RealtimeBarEventArgs e) { var handler = RealtimeBar; if (handler != null) handler(this, e); }