API changes - changes to the response of the ‘transfer_between_accounts’ API call

Dear developers,

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

Under ‘accounts’, the ‘binary’ account type is renamed to ‘trading’.
We’re adding a new attribute, ‘demo_account’ that returns 1 for demo accounts and 0 for real accounts.
This update happens on April 9.

The API call:

{
  "transfer_between_accounts": 1
}

Before the change:

{
  "transfer_between_accounts": {
      "accounts": {
         [
            "loginid": "CR9000000",
             "account_type": "binary",
             "currency": "USD",
              ....
         ]
       },
    }
    ....
}

After the change:

{
  "transfer_between_accounts": {
      "accounts": {
         [
            "loginid": "CR9000000",
             "account_type": "trading",
             "currency": "USD",
             "demo_account": 0,
              ....
         ]
       },
    }
    ....
}

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.