Esempio n. 1
0
 def fetch_instrument(self, instrument_id):
     req = ApiStruct.QryInstrument(InstrumentID=instrument_id)
     # req = ApiStruct.QryInstrument()
     time.sleep(1)
     r = self.ReqQryInstrument(req, self.inc_request_id())
     print(('A:查询合约, 函数发出返回值:%s' % r))
Esempio n. 2
0
 def fetch_instrument(self, instrument_id):
     req = ApiStruct.QryInstrument(InstrumentID=instrument_id, )
     time.sleep(1)
     r = self.trader.ReqQryInstrument(req, self.inc_request_id())
     logging.info(u'A:查询合约, 函数发出返回值:%s' % r)
Esempio n. 3
0
 def fetch_all_instruments(self):
     # req = ApiStruct.QryInstrument(InstrumentID=instrument_id)
     req = ApiStruct.QryInstrument()
     time.sleep(1)
     r = self.ReqQryInstrument(req, self.inc_request_id())
     print(u'A:查询合约, 函数发出返回值:%s' % r)