Replies

shoaibmalek02
28 May 2021, 07:17

Account Authorization Not Working
# send a ProtoOAAccountAuthReq with data
c.emit("AccountAuthReq", ctidTraderAccountId=<cTraderID>,
       accessToken="<token>")
# handle ProtoOAAccountAuthRes messages
@c.message(msgtype="AccountAuthRes")
def on_account_auth_ok(**kargs):
    print("Account Authorized")
    c.stop()  # stops client

@shoaibmalek02

shoaibmalek02
26 May 2021, 14:10

swapd0 said:

Hi, I'm having the same error, did you find the solution? 

It's an issue of sendCompID. Use "demo.<sendCompID>" if you are using demo account.


@shoaibmalek02

shoaibmalek02
19 May 2021, 07:51 ( Updated at: 19 May 2021, 07:52 )

Hi Panagiotis,

Thank you for your response.

I send request with the correct password, host, and port number. But I don't know why I don't get any response.

Thanks & Regards,

Shoaib Malek


@shoaibmalek02