All
FAQ
Announcements
Product documents
OKX API FAQ
This is the password you filled in when applying for the API key. You need to remember it yourself. Once you forget it, you can't retrieve it and you'll need to create a new API key.How do I create an API key? On the App: 1. Log in to your OKX account > Select Menu (⋮⋮⋮) > Scroll down and select API > Create API key 2. Fill in the API name > Select Account and Purpose > Enter the IP address allowlist > Select Permissions > Enter the Paraphrase On the Web: 1.Published on 20 Sept 2024Updated on 5 Jun 2026139How do I automate my trades?
Gather all of the details that you need in regards to the trading bots here.How do I use OKX's API for custom trading strategies? Generate API keys: in your OKX account settings, generate API keys with appropriate permissions. Set up your development environment: use programming languages like Python, JavaScript, or others to create your trading bot. Connect to the API: utilize OKX’s API documentation to connect your bot to the exchange.Published on 1 Oct 2024Updated on 29 May 202612How can I do spot trading with the Jupyter Notebook?
How can I create API keys? After signing in to our platform, go to Trade > Demo trading to create API keys for testing purposes Open Demo trading page Go to Profile and select Demo Trading API to create API keys. Open API to create API keys Create API keys for the different master/sub accounts you might have Select Create API key Select Trade in the Permissions to trade with the API key Select Trade in Permissions Now you have access to your API key, your Secret key, and your passphrase.Published on 29 Sept 2023Updated on 29 May 2026562Index components weightage adjustment FAQ
What will be updated on API related to index component weights? No changes to current API endpoints and no new endpoints will be added. The component weight (field name: "wgt") returned by "/api/v5/market/index-components" will be updated to the latest weights automatically.6. How does the updated index weighting method affect my trading strategies? After the weighting adjustments, the components that have higher volume and better liquidity will have higher weights.Published on 14 Dec 2023Updated on 29 May 202613How can I enhance my OKX app security?
Audit your API permissions: head over to Profile > API for the web while select Menu > Tools > API to access via the app, and delete any unauthorized APIs available. Proceed to select API under the Tools section on the Menu page Check your active devices: head over to Profile and settings > Security > Device Management under Advanced security, and remove any unrecognized devices and reset your password.Published on 14 May 2026Updated on 29 May 2026What do I need to do when I change my country of residence?
API domain update Follow OKX API Documentation for the latest API domain updates. Updated login URL Use the correct login site by following the account login flow on the web. There are no changes to the login process for the app version.Tips when entering your address Enter your full address (street, unit number if applicable, city, postal code, etc.) using the required format shown on screen.Published on 10 Apr 2025Updated on 4 Jun 2026641How do I level up my trades with Mizar?
That means you don't need to deposit any funds on Mizar to trade, but you can connect to your exchange with API keys.3. How do I connect OKX to Mizar? Learn more on how you can create your OKX API key and how to connect it to the Mizar bot by reading about it here.Published on 28 Mar 2024Updated on 29 May 20265How do I verify OKX's ownership and balance of the wallet address?
Please refer to here Use third-party nodes: Infura、Alchemy Example: Alchemy provides ethereum archive node serviceOKLink API balance verification Login to OKLink Go to profile > API Select Create API under On-chain Data to create apiKey Configure parameters related to OKLink open API in the rpc.json file OKLink is a blockchain big data company that provides an open interface to query the address balance of a specified height in the blockchain.Published on 26 Sept 2023Updated on 29 May 20261,004How do I supercharge my trading with Alertatron's automated solutions?
There are three main steps: Creating a set of OKX API keys: Visit here to learn more Adding the API keys to Altertatron: Visit here Amazing, you can now send your first test order!Published on 28 Mar 2024Updated on 29 May 20261How do I secure my account after detecting unusual activity?
However, for security reasons, fund withdrawals will be disabled for 24 hours after making any changes.API To view or delete your APIs: Select the Menu icon on the app > Pull down to access the Toolbar > Select API > Delete any APIs not created by the account owner.Trusted device Visit your Security Center and review Device Management.If you see any unrecognized devices, we recommend removing them immediately to secure your account.Payment method It’s important to keep your payment methods accuratePublished on 21 Mar 2025Updated on 29 May 202634What's the Nitro Spreads table view?
This information, previously available only via API, is now accessible within the user interface (UI) for easier analysis.Where can I view the strategy formulas for both crypto-margined and USDT-margined contracts? Visit here to view the strategy formulas for both contracts.Published on 16 Jul 2024Updated on 29 May 20263Quote sorting
To see additional quotes, please use the API to see all Makers' quotes. Expired and canceled quotes will be visible on the RFQ board for your RFQ only if there are fewer than three active quotes. Active quotes will always be sorted higher than expired and canceled quotes. Similar to active quotes, expired and canceled quotes will be sorted best first, with earlier quotes received preference for identical quotes.Published on 30 Jun 2022Updated on 29 May 202617USDⓈ contract FAQ
Does USDⓈ futures support API trading? Yes, all USDⓈ futures support API interfaces, and the instrument_id is consistent with the frontend.Published on 17 Oct 2025Updated on 4 Jun 20265OKX AI 101
AI Skills: invoke onchain services in plain language — no complex API integration needed. MCP Integration: Claude Code, Cursor, and other major AI tools can natively call onchain operations. Agent Payments Protocol (APP): AI autonomously handles quoting, negotiating, escrow, metering, and settlement.Published on 4 May 2026Updated on 29 May 20264What's Smart Arbitrage bot and how do I use it?
to Funding rate and basis rate, which can be set by selecting on the chart to load the details Go through important details such as the Expected arbitrage APY to set your investment according to your preference Fill in your investment amount at the Investment amount option once you're ready to trade Note: if you have insufficient balance, you can top up by selecting the '+' option beside your current balance.Published on 22 Aug 2024Updated on 29 May 2026107