def fetch_instruments_by_exchange(self, exchange_id): '''不能单独用exchange_id,因此没有意义 ''' req = ApiStruct.QryInstrument(ExchangeID=exchange_id, ) self.requestid += 1 r = self.ReqQryInstrument(req, self.requestid) print u'A:查询合约, 函数发出返回值:%s' % r
def fetch_instrument(self, instrument_id): req = ApiStruct.QryInstrument(InstrumentID=instrument_id, ) self.requestid += 1 r = self.ReqQryInstrument(req, self.requestid) print u'A:查询合约, 函数发出返回值:%s' % r