Bullish supports the following key types for Trading API and Custody API.
Key type | Trading API | Custody API |
FIX | ![]() |
![]() |
HMAC | ![]() |
![]() |
ECDSA | ![]() |
![]() |
Bullish Keys | ![]() |
![]() |
Adding API Keys
For Trading API keys, you can add HMAC, ECDSA and Bullish keys.
To add an HMAC Trading key:
- Go to your User Menu in the upper right corner of the screen.
- Choose Settings.
- Navigate to API Keys.
- Choose Add API Key.
- Select Trading Key.
- Select the type of key (HMAC) and its permissions. By default, the key will have the Read Info permission.
- Choose Continue.
- Enter the key name, the trading accounts it is allowed to access (Institutional customers only), and choose Generate.
-
Enter your 6-digit Bullish PIN and choose Confirm.
-
Perform WebAuthn.
- You can copy your API Public Key and API Private Key.
To add an ECDSA Trading key:
- Go to your User Menu in the upper right corner of the screen.
- Choose Settings.
- Navigate to API Keys.
- Choose Add API Key.
- Select Trading Key.
-
Select the type of key (ECDSA) and its permissions. By default, the key will have the Read Info permission. As an added layer of security, you can also set the range of IP addresses from which the API key is allowed to connect. This is optional. The IP whitelist ranges may be edited after the key has been created.
- Choose Continue, then enter the key name and the trading accounts it is allowed to access (Institutional customers only). You can choose to Generate an API key or enter your own key.
- Choose Continue.
-
Enter your 6-digit Bullish PIN and choose Confirm.
-
Perform WebAuthn.
-
You can copy your API Private Key and UUID.
For Custody API keys, you can add ECDSA and Bullish keys.
To add an ECDSA Custody key:
- Go to your User Menu in the upper right corner of the screen.
- Choose Settings.
- Navigate to API Keys.
- Choose Add API Key.
- Select Custody Key.
- Select the type of key (ECDSA) and its permissions. By default, the key will have the Read Info and IP Address Whitelist permission.
-
In the Add Custody API Key pop up window, enter your IP addresses (Start Range and End Range). To add multiple IP ranges, choose Add IP range. The IP whitelist ranges may be edited after the key has been created.
- Choose Continue, then enter the key name and the trading accounts it is allowed to access (institutional customers only). You can choose to Generate an API key or enter your own key.
-
Enter your 6-digit Bullish PIN and choose Confirm.
-
Perform WebAuthn.
- You can copy your API Private Key and UUID.
The API Key is now saved and will appear in the API Key listing in Settings.
The name of an API key may be changed. Any additional properties that you wish to change require that you delete the key and create a new one, however you can reuse the same private key if you choose by entering the value in step 11 instead of generating a new one.
If you want to reset an API key, visit our API documentation.
Editing IP range
To edit the IP range in your API keys:
- Go to your User Menu in the upper right corner of the screen.
- Choose Settings.
- Choose API Keys.
- Choose Edit next to the API key that you want to update.
- In this step you can amend the IP range in your API key.
a. If you did not specify the IP range when you first created the API key, you can select IP Address Whitelist and enter the Start Range and End Range.
OR
b. If you want to enter additional IP ranges, choose Add IP Range and enter the Start Range and End Range.
OR
c. If you want to remove a specific IP range, choose the 'X' button next to the IP range you want to delete. - Choose Continue.
Using your own API key
You can use your own API keys in the Bullish exchange if they follow the format listed below.
For example purposes only:
Key type | Key format | Example | |
ECDSA | Curve | ECDSA R1 (prime256v1 or secp256r1 or P-256) | -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEYtPSVNz5ZsfxfaYdpRf3e2iv9iAc goiGiFUG0au5Mvn/MiaSTu2Ji5TyO/+BGYEcxQZ5aUb9QNz+yHTB1/fAxQ== -----END PUBLIC KEY----- |
Key Format | X.509 SubjectPublicKeyInfo format, PEM encoded | ||
Bullish Key | Curve | ECDSA R1 + (EOSIO special requirement) |
PUB_R1_7mhjRzhFjcbRusLyCWnLaWhuUu5MojXbeN5oUHsjT4PdYJnnYc PVT_R1_2C6FjyDWhf2EbCioKWfSTCWcjtchhXjdpqvoLaFjYcMuCxYvLH |
Key Format | EOSIO own specific format |