public void SendOrderThrow(int conId, string instrument, decimal amount, EnmOrderDir dir, int throwSteps) { enmTradingEvent ev = enmTradingEvent.SendOrderThrow; CSendOrderThrow sot = new CSendOrderThrow { Instrument = instrument, OrderDir = dir, Amount = amount, ThrowSteps = throwSteps }; SendDataToServer(conId, sot, ev); }
private void ProcessSendOrderThrow(int conId, byte[] arrMsgBody) { CSendOrderThrow sot = CUtilProto.DeserializeProto <CSendOrderThrow>(arrMsgBody); _dictKBotIdVBotTrader[_dictConnIdTrader[conId].BotId].SendOrderThrowByTrader(sot.Instrument, sot.OrderDir, sot.Amount, sot.ThrowSteps); }