Exemple #1
0
        public static ConfirmOrder Get()
        {
            if (cf == null)
            {
                cf = new ConfirmOrder();
            }

            return(cf);
        }
Exemple #2
0
        public void OnReceiveOrder(IOrderMethod om)
        {
            request.RequestTrData(new Task(() =>
            {
                if (ConfirmOrder.Get().CheckCurrent())
                {
                    ErrorCode = axAPI.SendOrderFO("GoblinBat", ScreenNo, Account, Code, 1, om.SlbyTP, om.OrdTp, om.Qty, om.Price, "");
                }

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