示例#1
0
    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())
示例#2
0
 def reqQryInstrument(self):
     """查询合约"""
     req = ApiStructure.QryInstrumentField()
     self.ReqQryInstrument(req, self.inc_request_id())