Unexpected err=AssertionError(), type(err)=<class 'AssertionError'>
Unexpected err=AssertionError(), type(err)=<class 'AssertionError'>
05 Jun 2023, 18:17
I am getting this error whenever l make the ProtoOAGetDynamicLeverageByIDReq call to the server. It happens even it is the only line of code executed in python. Has anyone encountered this issue? If so any advice or comment would be greatly appreciated. The content of the function is as follows:
def sendProtoOAGetDynamicLeverageByIDReq():
request = ProtoOAGetDynamicLeverageByIDReq()
request.payloadType = ProtoOAPayloadType.PROTO_OA_GET_DYNAMIC_LEVERAGE_REQ.value
request.ctidTraderAccountId = accountId
request.leverageId = int(leverageId)
deferred = self.client.send(request)
deferred.addCallback(leverageResponseCallback)
deferred.addErrback(onError)
return deferred