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 Sep 20, 2024Updated on May 15, 2026138How do I prevent self-trade and improve my API trading efficiency and protection?
Visit OKX's API page and explore the extensive API documentation to learn more about how to leverage this powerful tool to enhance your trading journey.Published on Jun 11, 2024Updated on Apr 3, 202611OKX 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 May 4, 2026Updated on May 14, 20261Options trading FAQ
What are the API Best Practices? For those connected via API, visit here to learn more about API best practices.Is Market Maker Protection (MMP) available for options trading? We offer Market Maker Protection for options market makers to protect makers from executing too much within a short period of time. Please contact your account manager or institutional@okx.com if you want to have it enabled. Please refer to Market Maker Protection API.Published on Nov 19, 2024Updated on Feb 9, 20264What should I expect when changing my country of residence to any country within the European Economic Area (EEA) or Australia?
You can restake your assets immediately after the update.API domain update Your API domain will change after the system update. The REST API domain will be updated to eea.okx.com, and the WebSocket domain will be updated to wseea.okx.com.Published on Jul 2, 2025Updated on Nov 17, 2025169USDG on X Layer FAQ
What's the 4.1% APY USDG rewards program and how do I participate? X Layer offers a 4.1% APY rewards program on USDG holdings, where USDG rewards are earned daily and claimable every week. To participate: Hold USDG on X Layer via OKX Wallet Connect your Wallet to Exchange to activate the rewards program Claim your rewards on Wallet under the USDG token page Note: the rewards program isn't available to customers in USA, UK, EEA, Brazil, Australia, UAE, Turkey, and Singapore. 3.Published on Oct 21, 2025Updated on Dec 18, 202514How 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 Oct 1, 2024Updated on May 4, 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 Sep 29, 2023Updated on Sep 10, 2025557USDG rewards program FAQ
With USDG rewards, you can earn up to 3.85% APY simply by holding USDG in your OKX Wallet. Your funds remain fully accessible — you can redeem or move them anytime without penalties. Rewards are designed to help users grow their digital dollar holdings passively and securely. Note: We reserve the right to adjust the advertised APY at any time with reasonable notice.3. Is USDG token backed by US dollars? Yes. Each USDG token is backed by high-quality reserves, such as U.S.Published on Oct 13, 2025Updated on May 14, 2026477Index 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 Dec 14, 2023Updated on Feb 12, 202613What's OKX Web3 Gaming?
You can follow the steps outlined in OKX WaaS-Marketplace API to create a project and generate API keys from the developer portal. Note: if you have any questions, you can always contact our support team via our OKX API Telegram group for real-time support.How do I issue my allowlist and NFT on OKX? You can refer to this article to learn more about issuing your allowlist and NFT assets.How do I enforce the collection of NFT royalties?Published on Jun 18, 2024Updated on Jan 27, 2026276How do 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 Mar 21, 2025Updated on May 14, 202637How 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 Mar 28, 2024Updated on Jan 2, 20265Flywheel FAQ
Minimum APY: defaults to 5%. You can set this between 0% and 150%. Maximum term: defaults to 90 days. Must be 1 day or more.How do I find target products for the Flywheel trading bot? Enter your parameters, then select Find product to search available Dual Investment products. Filter results by buy price, minimum APY, and maximum term.How do I set my investment amount for the Flywheel trading bot? Set a minimum and maximum investment amount within the range shown on the page.Published on Mar 3, 2025Updated on May 13, 20268Default subscribe rules
Interest rate setting We set APY based on borrowing demand every hour. By enabling Default subscribe, we'll automatically match the user with the current market APY.2. Interest calculation and distribution For you whose lending offers are successfully matched on the hour T, the hourly interest for the corresponding loan amount from T to T+1 will be distributed on the hour T+1.3.Published on Sep 5, 2023Updated on Feb 11, 2026182