Skip to main content

OKX API Guide

The League of Traders guide on how to issue an API key through OKX.

Updated over a week ago

No OKX account?


1. Generate API Key

Go to your OKX API Management page
After logging in, go to your OKX API management page under [Profile] > [API Key], then select [Create API Key]. On mobile, tap the [+] button.


2. Set API permissions


Set the permissions as follows:

  • Purpose – Select [API trading]

  • API Name – Enter a custom name (e.g., LoT)

  • Passphrase – Create a passphrase (save it separately)

  • Permissions – Ensure [Read] remains checked


Enter the following IP address in [IP Address] (optional), then click [Confirm].
Copy trusted IP

3.34.82.171,13.124.238.107,13.124.81.58,13.125.104.68,13.209.34.187,15.165.122.157,15.165.192.190,15.165.212.153,3.34.12.185,3.34.63.171,3.35.144.158,3.36.236.219,3.37.212.151,3.39.20.28,3.39.217.165,3.39.58.9,43.200.144.160,43.200.58.136,43.201.91.87,52.78.42.179
  • This blocks external access and keeps your account secure.

3. Save API Key

After saving the issued API Key and Secret Key, connect it to your League of Traders account.

The secret key will not appear again, so please be mindful. You could permanently lose access to your API Key if you lose these codes.

Did this answer your question?