Skip to content

Proxies / Endpoints

How to connect?

cTrader Open API uses several different proxies on different regions, for each region there are two different proxy, one for live accounts and one for demo accounts.

The live and demo environments are fully separated, you can't use a live proxy to get a demo account data or vice versa.

Open API proxies are same for both TCP and web socket connections.

Proxies

Each Region consists of 4 physical proxies (2 demo and 2 live) located at different providers.

The proxies will be accessible by the following name scheme:

Region Demo Live
Singapore demo-sg.ctraderapi.com:5035 live-sg.ctraderapi.com:5035
Australia demo-au.ctraderapi.com:5035 live-au.ctraderapi.com:5035
Europe demo-eu.ctraderapi.com:5035 live-eu.ctraderapi.com:5035
East US demo-use.ctraderapi.com:5035 live-use.ctraderapi.com:5035

Each hostname will resolve to one of 2 proxies. In case one of the proxies will fail then the second proxy will take over the role under the same name.

To use each region individual proxy you can add ½ after the region name:

Region Demo Live
Singapore

demo-sg-1.ctraderapi.com:5035

demo-sg-2.ctraderapi.com:5035

live-sg-1.ctraderapi.com:5035

live-sg-2.ctraderapi.com:5035

Australia

demo-au-1.ctraderapi.com:5035

demo-au-2.ctraderapi.com:5035

live-au-1.ctraderapi.com:5035

live-au-2.ctraderapi.com:5035

Europe

demo-eu-1.ctraderapi.com:5035

demo-eu-2.ctraderapi.com:5035

live-eu-1.ctraderapi.com:5035

live-eu-2.ctraderapi.com:5035

East US

demo-usa-1.ctraderapi.com:5035

demo-usa-2.ctraderapi.com:5035

live-usa-1.ctraderapi.com:5035

live-usa-2.ctraderapi.com:5035

Note

If you faced any connection issue try to use a region individual proxy, not the resolving proxies, it will help us to find the issue.

When connecting directly to API proxies instead of using aggregator / resolver proxies you might not be able to connect, on that case try other proxy of same region.

Old Proxies

In the past we had just two proxy:

Demo Live
demo.ctraderapi.com:5035 live.ctraderapi.com:5035

In order to keep compatibility with our old setup we will maintain them which will resolve based on GeoIP to the relevant region new proxies.

Limitations

The proxies are subject to the following limitations:

  • 50 requests per second per application for non historical data requests.
  • 5 requests per second per application for historical data requests.
  • 25 concurrent connections per application.

Comments

Back to top