Skip to Content
Platforms

Get a list of accounts for a cTrader Broker SSO screen

Use this method on the broker's screens opened inside a cTrader app (deposit, withdrawal). Works as the method to get a list of accounts (GET /api/v2/my/accounts), but returns only the accounts on the platforms of the white label's cTrader connection. Returns `404` when cTrader Broker SSO is not set up for the white label.

GET
/api/v2/my/ctrader/broker-sso/{whitelabel}/accounts

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

whitelabel*string

The cTrader white label (broker name) the screen is opened for.

Match^[A-Za-z0-9._-]+$
Lengthlength <= 100

Query Parameters

limit?integer

Sets the limit

Range1 <= value <= 1000
Default10
offset?integer

Sets the offset

Range0 <= value
Default0
sort_order?string

Sorts the items in ascending or descending order

Default"desc"

Value in

  • "asc"
  • "desc"
sort_by?unknown

Sorts the items by a specified value

Default"createTime"
filter?

Filters the items by a specified value

Header Parameters

accept-language?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/my/ctrader/broker-sso/string/accounts?limit=10&offset=0&sort_order=desc" \  -H "accept-language: ja"
{  "total": 0,  "data": [    {      "accountId": 0,      "accountNumber": "string",      "displayNumber": "string",      "archive": false,      "caption": "string",      "currency": {        "alphabeticCode": "string",        "minorUnit": 0,        "name": "string",        "numericCode": 0      },      "favourite": true,      "group": {        "id": 0,        "name": "string",        "type": "default",        "priority": 0      },      "platform": {        "id": 0,        "name": "string",        "caption": "string",        "type": "personal",        "isDemo": true,        "terminalUrl": "string"      },      "priority": 0,      "statement": {        "availableBalance": "string",        "currentBalance": "string",        "credit": "string",        "equity": "string",        "freeMargin": "string",        "hold": "string",        "margin": "string",        "marginLevel": "string",        "pnl": "string",        "updateTime": "2019-08-24T14:15:22Z"      },      "type": "personal",      "createTime": "2019-08-24T14:15:22Z",      "permissions": [        "deposit"      ],      "productId": 0,      "leverage": 0,      "productCurrency": {        "id": 0,        "caption": "string",        "product": {          "id": 0,          "type": "personal",          "name": "string",          "caption": "string",          "group": {            "id": 0,            "caption": "string",            "description": "string",            "type": "default",            "priority": 0,            "createTime": "2019-08-24T14:15:22Z",            "updateTime": "2019-08-24T14:15:22Z"          },          "platform": {            "id": 0,            "caption": "string",            "shortCaption": "string",            "name": "string",            "class": "string",            "isDemo": true          }        },        "currency": {          "alphabeticCode": "string",          "minorUnit": 0,          "name": "string",          "numericCode": 0        },        "factory": 0,        "variants": {          "startAmounts": [            "string"          ],          "leverages": [            0          ]        },        "platformGroups": [          "string"        ],        "isHedgingEnabled": true,        "maxAccounts": 0,        "permissions": [          "deposit"        ],        "priority": 0,        "linkInfo": "string",        "agreementLink": "string",        "minDepositAmount": "string"      },      "abilities": {        "demoTopUp": true,        "changeLeverage": true      },      "credentials": {        "type": "MetaTrader4",        "data": {          "login": "string",          "masterPassword": "string",          "investorPassword": "string"        }      }    }  ]}