Revolut X Crypto Exchange REST API
As a Revolut X customer, you can use the Revolut X REST API to ameliorate your trading experience.
Our REST API is used in addition to the FIX API.
API key
To get started using the Revolut X REST API, you need an API key to include with your requests. To create it, follow the instructions below.
Generate an Ed25519 key pair
Before creating your API key in the Revolut X web app, you must first generate an Ed25519 key pair.
An Ed25519 key pair consists of a private key and a public key. The private key is kept secret and used for signing data or authenticating, while the public key can be shared to verify signatures and authenticate access.
You can generate this pair using openssl.
1. Generate the private key
Run the following command in your terminal:
openssl genpkey -algorithm ed25519 -out private.pem
This command generates a file named private.pem, which contains your private key.
It has the following structure:
-----BEGIN PRIVATE KEY-----
{YOUR BASE64-ENCODED PRIVATE KEY}
-----END PRIVATE KEY-----
This is your private key, and it will be used for signing requests. Your private key is a secret. Never share it with anyone and never send it as a part of any request.
2. Generate the public key
Next, generate the public key from your private key:
openssl pkey -in private.pem -pubout -out public.pem
This command generates a file named public.pem with your public key.
It has the following structure:
-----BEGIN PUBLIC KEY-----
{YOUR BASE64-ENCODED PUBLIC KEY}
-----END PUBLIC KEY-----
This is your public key. It is not secret, and it is safe to share. You will provide this key to Revolut X so we can verify the requests signed with your matching private key.
When you provide it, make sure that you copy all of it, including the -----BEGIN KEY----- and -----END KEY----- lines.
Create your API key
Once you have your public key (the content of public.pem), you are ready to create your API key.
Go to the Revolut X web app → Profile to complete the setup.
API endpoints
To see the reference for the specific endpoints and operations of this API, browse the menu on the left.
Authentication
- API Key: AccessToken
The API key added through the Revolut X web app → Profile.
Each API key directly maps to a user account (either business or retail).
Security Scheme Type: | apiKey |
|---|---|
Header parameter name: | X-API-KEY |