public static void AddBid(Bid bid) { if(!bidCache.ContainsKey(bid.Code)) bidCache.Add(bid.Code, new BidCacheQueue()); bidCache[bid.Code].Enqueue(bid); }
public void Enqueue(Bid obj) { queue.Enqueue(obj); lastData = obj; if (OnBidChange != null) { OnBidChange(this, obj); } }
public virtual void OnStockDataChanged(object sender, Stock.Market.Bid data) { // NOTHING TO DO }
public void Enqueue(Bid obj) { bids.Insert(0, obj); queue.Enqueue(obj); lastData = obj; if (OnBidChange != null) { OnBidChange(this, obj); } }