Unexpected err=AssertionError(), type(err)=<class 'AssertionError'>

Created at 05 Jun 2023, 18:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AN

andrew.okri@gmail.com

Joined 05.06.2023

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


@andrew.okri@gmail.com