Пример #1
0
        public OrderInfo(OrderResponse order)
        {
            Symbol         = order.Symbol;
            Side           = order.Side;
            Status         = order.Status;
            Price          = order.Price;
            Qty            = order.OriginalQuantity;
            ClientID       = order.ClientOrderId;
            BaseCurrReturn = null;

            //Always 'NEW' OrderStatus, from Initial loading
            if (order.Side.ToString() == ClientID.Split('_')[1])
            {
                StratState = StrategyState.OPEN;
            }
            else
            {
                StratState = StrategyState.TP_ENTERED;
            }
        }