Guides

Create account using API

Follow these simple steps to create demo and real accounts using the Deriv API:

Verify email

  1. Make a call to the verify_email endpoint.
  2. Set the type parameter to opening_account to indicate you’re opening a new account.
  3. You will receive an email containing a verification code at the email address provided in the API call. This code is required for the next steps.

Create a Demo Account

To create a demo account:

  1. Make a call to the new_account_virtual endpoint.
  2. Provide the following information:
    1. Residence: The 2-letter country code. You can obtain this from the residence_list call or refer to the list here.
    2. Verification Code: The email verification code you received from the verify_email call above.

A demo account will be created with a starting balance of USD 10,000.

Create a Real Account

To set up a real account, follow these steps after logging into your demo account:

For users in the EU: Use the new_account_maltainvest endpoint.

For users outside the EU:Use the new_account_real endpoint.

Provide the Following Details:

Residence: The 2-letter country code. Obtain this from the residence_list call or check the list here

Currency: Set the currency for the account. You can find the list of supported currencies using the payout_currencies call or view it here.

Once you complete these steps, you will have a real account ready for trading!

Earn with Deriv’s Affiliate Program

To start earning commissions by referring new users to Deriv, make sure to include your affiliate_token in the API request when creating new accounts using the following endpoints:

  1. new_account_virtual
  2. new_account_real
  3. new_account_maltainvest

By using these APIs and your affiliate_token, you'll ensure your referrals are tracked correctly, allowing you to earn commissions effortlessly.