def OnRspUserLogin(self, pRspUserLogin, pRspInfo, nRequestID, bIsLast): if pRspInfo.ErrorID != 0: print("td OnRspUserLogin failed error_id=%s msg:%s", pRspInfo.ErrorID, pRspInfo.ErrorMsg.decode('gbk')) else: print("td user login successfully") qryinstrument = ApiStructure.QryInstrumentField() self.ReqQryInstrument(qryinstrument, self.inc_request_id())
def reqQryInstrument(self): """查询合约""" req = ApiStructure.QryInstrumentField() self.ReqQryInstrument(req, self.inc_request_id())