public void AddOrderRequest(string clOrdId, IOrderPostRequest rq)
        {
            if (!SymbolContingencyOrders.ContainsKey(rq.Symbol))
            {
                SymbolContingencyOrders[rq.Symbol] = new Dictionary <string, IOrderPostRequest>();
            }

            SymbolContingencyOrders[rq.Symbol][clOrdId] = rq;
        }
 public CreateOrder(Guid id, IOrderPostRequest request)
 {
     Id          = id == default ? Guid.NewGuid() : id;
     Exchange    = request.Exchange;
     AccountId   = request.AccountId;
     Symbol      = request.Symbol;
     Price       = request.Price;
     Amount      = request.Quantity;
     OrderType   = request.OrdType;
     TimeInForce = request.TimeInForce;
     Side        = request.Side.Value;
 }