Пример #1
0
 public void Update(MarketBestBidAskDto other)
 {
     Symbol          = other.Symbol;
     BestBidPrice    = other.BestBidPrice;
     BestAskPrice    = other.BestAskPrice;
     BestBidQuantity = other.BestBidQuantity;
     BestAskQuantity = other.BestAskQuantity;
 }
 public void Update(MarketBestBidAskDto other)
 {
     Symbol = other.Symbol;
     BestBidPrice = other.BestBidPrice;
     BestAskPrice = other.BestAskPrice;
     BestBidQuantity = other.BestBidQuantity;
     BestAskQuantity = other.BestAskQuantity;
 }
 public ServerToClientMessage()
 {
     LimitOrder = new LimitOrderDto();
     LimitOrderList = new List<LimitOrderDto>();
     Execution = new ExecutionDto();
     Level1 = new MarketBestBidAskDto();
     StopLimitOrder = new StopLimitOrderDto();
     StopLimitOrderList = new List<StopLimitOrderDto>();
     Reset();
 }
        public void Update(MarketBestBidAskDto marketBestBidAskDto)
        {
            if (marketBestBidAskDto.BestBidPrice.HasValue)
                BidPrice = marketBestBidAskDto.BestBidPrice.Value.ToString("N4");
            else
                BidPrice = "-";

            if (marketBestBidAskDto.BestAskPrice.HasValue)
                AskPrice = marketBestBidAskDto.BestAskPrice.Value.ToString("N4");
            else
                AskPrice = "-";

            BidQuantity = marketBestBidAskDto.BestBidQuantity;
            AskQuantity = marketBestBidAskDto.BestAskQuantity;
        }