private void SmartComServerSetMyOrder(int row, int nrows, string portfolio, string symbol, SmartCOM3Lib.StOrder_State state, SmartCOM3Lib.StOrder_Action action, SmartCOM3Lib.StOrder_Type type, SmartCOM3Lib.StOrder_Validity validity, double price, double amount, double stop, double filled, System.DateTime datetime, string orderid, string no, int cookie) { SetMyOrderEvent ev = new SetMyOrderEvent(symbol, state, action, type, price, amount, stop, filled, datetime, orderid, cookie); NotifyStrategies(ev); ev.Log(Logger); }
public void EmulateUpdateOrderArrival(string portfolio, string symbol, SmartCOM3Lib.StOrder_State state, SmartCOM3Lib.StOrder_Action action, SmartCOM3Lib.StOrder_Type type, SmartCOM3Lib.StOrder_Validity validity, double price, double amount, double stop, double filled, System.DateTime datetime, string orderid, string orderno, int status_mask, int cookie) { this.UpdateOrder(portfolio, symbol, state, action, type, validity, price, amount, stop, filled, datetime, orderid, orderno, status_mask, cookie); }
private void SmartComServerUpdateOrder(string portfolio, string symbol, SmartCOM3Lib.StOrder_State state, SmartCOM3Lib.StOrder_Action action, SmartCOM3Lib.StOrder_Type type, SmartCOM3Lib.StOrder_Validity validity, double price, double amount, double stop, double filled, System.DateTime datetime, string orderid, string orderno, int status_mask, int cookie) { if (portfolio.Equals(Portfolio)) { UpdateOrderEvent ev = new UpdateOrderEvent(symbol, state, action, type, price, amount, stop, filled, datetime, orderid, cookie); NotifyStrategies(ev); ev.Log(Logger); } }
private void stServer_UpdateOrder(string portfolio, string symbol, SmartCOM3Lib.StOrder_State state, SmartCOM3Lib.StOrder_Action action, SmartCOM3Lib.StOrder_Type type, SmartCOM3Lib.StOrder_Validity validity, double price, double amount, double stop, double filled, System.DateTime datetime, string orderid, string orderno, int status_mask, int Cookie) { this.logger.Log(String.Format("{0:dd/MM/yyyy H:mm:ss.fff}, {1}, получен UpdateOrder {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12:dd/MM/yyyy H:mm:ss.fff}, {13}, {14}, {15}, {16}", BrokerDateTime.Make(DateTime.Now), this.GetType().Name, portfolio, symbol, state, action, type, validity, price, amount, stop, filled, datetime, orderid, orderno, status_mask, Cookie)); this.orderData.GetData <UpdateOrder>().Add(new UpdateOrder(portfolio, symbol, state, action, type, validity, price, amount, stop, filled, datetime, orderid, orderno, status_mask, Cookie)); }