Example #1
0
        public void NewOrder(STRUCT_0393 message)
        {
            StreamWriter sw = SocketManager.getInstance().clientSocketMap[SocketManager.iptable["SOCKET3"]].sw;

            if (sw != null)
            {
                sw.WriteLine(message.toKRXFORMAT());
                sw.Flush();
                insert신규주문(message);
                GETDATA();
            }
            orderLogger.Info(string.Format("NewOrder     : {0}", JsonConvert.SerializeObject(message)));
        }
Example #2
0
        public void NewOrder(STRUCT_0374 message, int orderQty)
        {
            STRUCT_0393 order = new STRUCT_0393(message.topic, message.seq, message.ISSUE_CODE, MainForm.orderNumber.ToString("0000000000"), "0000000000", message.ASK_BID_TYPE_CODE,
                                                OrderParam.NewOrder, orderQty.ToString("0000000000"), message.TRADING_PRICE);

            StreamWriter sw = SocketManager.getInstance().clientSocketMap[SocketManager.iptable["SOCKET3"]].sw;

            if (sw != null)
            {
                sw.WriteLine(order.toKRXFORMAT());
                sw.Flush();
                insert신규주문(order);
                GETDATA();
            }
            orderLogger.Info(string.Format("NewOrder     : {0}", JsonConvert.SerializeObject(order)));
        }