示例#1
0
        /// <summary>
        /// Provides methods and properties which represent a CME limit order book.
        /// </summary>
        /// <param name="depth"></param>
        public OrderBook(int depth)
        {
            InitializeOrderBook(depth);

            Depth           = depth;
            LastTradedPrice = LastTradedPrice.GetDummy();
        }
示例#2
0
        /// <summary>
        /// Provides methods and properties which represent a CME limit order book.
        /// </summary>
        /// <param name="depth"></param>
        /// <param name="instrumentId"></param>
        public OrderBook(int depth, int instrumentId)
        {
            InitializeOrderBook(depth);

            Depth           = depth;
            LastTradedPrice = LastTradedPrice.GetDummy();
            InstrumentId    = instrumentId;
        }
示例#3
0
 /// <summary>
 /// Deep copies the calling LastTradedPrice to the LastTradedPrice object specified as a parameter.
 /// </summary>
 /// <param name="destinationLastTradedPrice"></param>
 public void CopyInto(LastTradedPrice destinationLastTradedPrice)
 {
     destinationLastTradedPrice.Price      = Price;
     destinationLastTradedPrice.Size       = Size;
     destinationLastTradedPrice.UpdateTime = UpdateTime;
 }
示例#4
0
 /// <summary>
 /// Deep copies the calling LastTradedPrice to the LastTradedPrice object specified as a parameter.
 /// </summary>
 /// <param name="destinationLastTradedPrice"></param>
 public void CopyInto(LastTradedPrice destinationLastTradedPrice)
 {
     destinationLastTradedPrice.Price = Price;
     destinationLastTradedPrice.Size = Size;
     destinationLastTradedPrice.UpdateTime = UpdateTime;
 }