Skip to main content

API Endpoints

There are 4 pieces of detail about API endpoints:

  1. Host of the endpoint
  2. Port of the endpoint
  3. Specific host designated base on account type
  4. Specific port designated base on messaging type

Below table shows all the possible combinations:

HostPortAccount TypeMessaging Format
live.ctraderapi.com5035LiveProtobuf
demo.ctraderapi.com5035DemoProtobuf
live.ctraderapi.com5036LiveJSON
demo.ctraderapi.com5036DemoJSON

An Example

Let's say you have a live account and you want to use JSON as the method of
communication with the server. In that case, you should use below endpoint:

'live.ctraderapi.com:5036'