Exemplo n.º 1
0
        public static ConfirmOrder Get()
        {
            if (cf == null)
            {
                cf = new ConfirmOrder();
            }

            return(cf);
        }
Exemplo n.º 2
0
        public void OnReceiveOrder(IStrategy order)
        {
            request.RequestTrData(new Task(() =>
            {
                if (ConfirmOrder.Get().CheckCurrent() && !order.Code.Equals(string.Empty))
                {
                    ErrorCode = axAPI.SendOrderFO(string.Concat(order.Code, ScreenNo), ScreenNo, Account, order.Code, 1, order.SlbyTP, order.OrdTp, order.Qty, order.Price, "");
                }

                if (ErrorCode != 0)
                {
                    new Error(ErrorCode);
                }
            }));
        }