Options

API changes - Update to the response of the trading services API Call.

We’ve made the following changes to the response of the ‘trading_servers’ API call:

This call will now accept a new value for platform, "dxtrade", to return availability of Deriv X services.

After the change, the API call:

{
    "trading_servers" : 1,
    "platform": "dxtrade"
}

Will return:

"trading_servers": [
    {
      "account_type": "real",
      "disabled": 0,
      "supported_accounts": [
        "gaming",
        "financial"
      ]
    },
    {
      "account_type": "demo",
      "disabled": 0,
      "supported_accounts": [
        "gaming",
        "financial"
      ]
    }
  ]

The exact response content will depend on maintenance status and markets available in your country.

Please make the necessary changes to your code.

If you need help, contact us at api-support@deriv.com.

Thank you.

Sign In or Register to comment.