1.下单sendOrder 的参数如下:
req={'InstrumentID': u'y2405', 'CombHedgeFlag': '1', 'ExchangeID': 'DCE', 'MinVolume': 1, 'InvestorID': '159815', 'VolumeTotalOriginal': 2, 'ForceCloseReason': '0', 'UserID': '159815', 'Direction': '1', 'LimitPrice': 7434, 'OrderRef': '1', 'OrderPriceType': '2', 'VolumeCondition': '1', 'TimeCondition': '3', 'BrokerID': '9999', 'IsAutoSuspend': 0, 'ContingentCondition': '1', 'CombOffsetFlag': '0'}
2.返回下单不成功,提示错误16,找不到合约
onErrRtnOrderInsert data:{'ContingentCondition': '1', 'CombOffsetFlag': '0', 'UserID': '159815', 'LimitPrice': 7434.0, 'UserForceClose': 0, 'InvestUnitID': '', 'AccountID': '', 'MacAddress': '', 'Direction': '1', 'IsSwapOrder': 0, 'InvestorID': '159815', 'VolumeTotalOriginal': 2, 'ClientID': '', 'OrderPriceType': '2', 'TimeCondition': '3', 'IPAddress': '', 'IsAutoSuspend': 0, 'StopPrice': 0.0, 'InstrumentID': '', 'ExchangeID': 'DCE', 'MinVolume': 1, 'ForceCloseReason': '0', 'BrokerID': '9999', 'CombHedgeFlag': '1', 'GTDDate': '', 'CurrencyID': '', 'OrderRef': '1', 'BusinessUnit': '', 'VolumeCondition': '1', 'RequestID': 0} error"{'ErrorMsg': 'CTP:\xd5\xd2\xb2\xbb\xb5\xbd\xba\xcf\xd4\xbc', 'ErrorID': 16}