Open API 2.0: Can authorize multi accounts at the same time?

Created at 13 Jul 2020, 04:10
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!
UR

uri.fung

Joined 06.05.2020

Open API 2.0: Can authorize multi accounts at the same time?
13 Jul 2020, 04:10


Dear all,

I am developing an HTTP service using Open API 2.0.

The service serves as a trade terminal endpoint (https://api.mysite.com/ctrader/trade) which trader can send a trade command to execute. Traders registering their account with accountId and access_token to able to execute the commands.

The command send to this endpoint via http POST, the service will connect to Ctrader accounts and trade as trader commands.

Everything work well with single account. If multi traders send multi commands to multi accounts, the API return error. The 1st account was Authorize successful but the next one raise error:

Error:  ctidTraderAccountId: xxxxx
errorCode: "CANT_ROUTE_REQUEST"
description: "No environment connection"

Is this error said that I cannot connect multi accounts the same time? 

Regards,

URI.


@uri.fung
Replies

PanagiotisCharalampous
13 Jul 2020, 09:43

Hi Uri,

There is no limitation in how many accounts you can authorize. To investigate your issue further, we will need more information. Please send us at connect@spotware.com the following

  1. Application ID
  2. Token
  3. Account ID
  4. Account Type (live, demo)
  5. Broker

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous