Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nooperpudd committed Jun 13, 2021
1 parent c179926 commit c3668c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctpwrapper/TraderApi.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ cdef extern int TraderSpi_OnRspQryRiskSettleInvstPosition(self,
CThostFtdcRiskSettleInvstPositionField *pRiskSettleInvstPosition,
CThostFtdcRspInfoField *pRspInfo,
int nRequestID,
bool bIsLast) except -1:
cbool bIsLast) except -1:
self.OnRspQryRiskSettleInvstPosition(
None if pRiskSettleInvstPosition is NULL else ApiStructure.RiskSettleInvstPositionField.from_address(<size_t> pRiskSettleInvstPosition),
None if pRspInfo is NULL else ApiStructure.RspInfoField.from_address(<size_t> pRspInfo),
Expand All @@ -2388,7 +2388,7 @@ cdef extern int TraderSpi_OnRspQryRiskSettleProductStatus(self,
CThostFtdcRiskSettleProductStatusField *pRiskSettleProductStatus,
CThostFtdcRspInfoField *pRspInfo,
int nRequestID,
bool bIsLast) except -1:
cbool bIsLast) except -1:
self.OnRspQryRiskSettleProductStatus(
None if pRiskSettleProductStatus is NULL else ApiStructure.RiskSettleProductStatusField.from_address(<size_t> pRiskSettleProductStatus),
None if pRspInfo is NULL else ApiStructure.RspInfoField.from_address(<size_t> pRspInfo),
Expand Down

0 comments on commit c3668c8

Please sign in to comment.