コード例 #1
0
 public void Update(MarketBestBidAskDto other)
 {
     Symbol          = other.Symbol;
     BestBidPrice    = other.BestBidPrice;
     BestAskPrice    = other.BestAskPrice;
     BestBidQuantity = other.BestBidQuantity;
     BestAskQuantity = other.BestAskQuantity;
 }
コード例 #2
0
 public void Update(MarketBestBidAskDto other)
 {
     Symbol = other.Symbol;
     BestBidPrice = other.BestBidPrice;
     BestAskPrice = other.BestAskPrice;
     BestBidQuantity = other.BestBidQuantity;
     BestAskQuantity = other.BestAskQuantity;
 }
コード例 #3
0
 public ServerToClientMessage()
 {
     LimitOrder = new LimitOrderDto();
     LimitOrderList = new List<LimitOrderDto>();
     Execution = new ExecutionDto();
     Level1 = new MarketBestBidAskDto();
     StopLimitOrder = new StopLimitOrderDto();
     StopLimitOrderList = new List<StopLimitOrderDto>();
     Reset();
 }
コード例 #4
0
        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;
        }