예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <summary>
 /// RealtimeBar event invocator
 /// </summary>
 protected virtual void OnRealtimeBar(RealtimeBarEventArgs e)
 {
     var handler = RealtimeBar;
     if (handler != null) handler(this, e);
 }