public static void AddBid(Bid bid)
        {
            if(!bidCache.ContainsKey(bid.Code))
                   bidCache.Add(bid.Code, new BidCacheQueue());

            bidCache[bid.Code].Enqueue(bid);
        }
예제 #2
0
 public void Enqueue(Bid obj)
 {
     queue.Enqueue(obj);
     lastData = obj;
     if (OnBidChange != null)
     {
         OnBidChange(this, obj);
     }
 }
예제 #3
0
 public virtual void OnStockDataChanged(object sender, Stock.Market.Bid data)
 {
     // NOTHING TO DO
 }
예제 #4
0
 public void Enqueue(Bid obj)
 {
     bids.Insert(0, obj);
     queue.Enqueue(obj);
     lastData = obj;
     if (OnBidChange != null)
     {
         OnBidChange(this, obj);
     }
 }