Deriv API
app_id
.Some API calls require client authentication (e.g. portfolio
) while others don’t (e.g. ticks
).
Clients can generate API tokens by logging to their Deriv account and going to Security & Limits > API token
.
Send clients to:
Our system will authenticate the client and send them to the redirect URL you gave us during app registration. A valid token
will be returned in the token parameter of the URL.
To display the authentication form in another language, add the language code to the OAuth URL as follows:
Complete the authentication by calling authorize using clients’ API token.
Explore our API playground to learn about the required scope for all our API calls.
To open accounts via our API, you'll first need to verify the client's email address using verify_email
to
To open a virtual account, use new_virtual_account
and then topup_virtual
to top-up the new account with virtual money.
To open a real account, use residence_list
and states_list
to get the information needed for the account opening form. Once you have all the necessary information, use new_account_real
.
If you are a registered affiliate, remember to include the affiliate_token parameter. You’ll earn commission for every new account.
Based on the client’s country of residence, use landing_company to determine which landing company the account will be opened with. Use landing_company_details
to get information about the landing company.
You may get a client's portfolio
, statement
, profit_table
, and their account balance
. You may also sell an expired contract with sell_expired
, or generate a real time stream of transactions
.
proposal
.paymentagent_transfer
.paymentagent_withdraw
.paymentagent_transfer
.ping
.time
.website_status
.Some functions generate streams of data (e.g. ticks
) while others don’t. Use forget
to cancel an outstanding stream.