Exemple #1
0
        public void OnPositionOpened(Portfolio portfolio, Position position, bool queued)
        {
            var e = new OnPositionOpened(portfolio, position);

            if (queued)
            {
                this.queue.Enqueue(e);
            }
            else
            {
                OnEvent(e);
            }
        }
Exemple #2
0
 public void OnPositionOpened(Portfolio portfolio, Position position, bool queued)
 {
     var e = new OnPositionOpened(portfolio, position);
     if (queued)
         this.queue.Enqueue(e);
     else
         OnEvent(e);
 }