Creating an OKX API Key
Watch our instructional video or follow the steps below:
Last updated
Watch our instructional video or follow the steps below:
Last updated
In order to add an OKX account you will firstly need to create an account by clicking here: https://www.okx.com/join/73702724
The link can also be found in your settings menu, click on accounts then the OKX tab. You can click on the button that states "OKX API Keys"
Click on the user-icon in the upper right corner to open a drop-down menu.
Select API keys.
Choose if you want to create the API key for your main account or a sub account.
Click on Create V5 API key.
In the next form, select Linking thirt-party apps and select Insilicoterminal. In doing so the API key will automatically be restricted to the IP addresses of the Terminal.
Enter a name for the API key.
Enter a Passphrase. Make sure to retain your passphrase for the API key, as it will be required when adding to the Terminal.
Enable Trade for the Permissions.
Click on Confirm. You will be asked for a verification code / 2FA .
From the next menu you can now copy your generated API key and the Secret key and add it to the Terminal.
In the Terminal proceed to the 'Settings' section. From there, navigate to the 'Account' tab, where you will be welcomed by a screen as seen below. Choose a name for the account, input the API key and the Secret key into the respective fields and ensure that you include the Passphrase you generated.
Please make sure to set your OKX account mode to at least Single-currency margin in your trading settings.
If you want to manually set up the API key for the Terminal in OKX (by setting up a general API key and not one which is linked to a third-party app), you will need to whitelist the IP addresses of our Terminal servers. You may copy and paste all the IP addresses provided below:
Make sure you copy all the IP addresses, there should be 20 in total!