All
FAQ
Announcements
Product documents
What's mark price vs last price vs index price?
X-Perps trading uses multiple price references. Understanding the difference is important because different functions may rely on different prices.What's last price? The last price is the price of the most recent executed trade in the market. It's useful for: seeing recent trade activity charting and short-term market behaviourWhat's index price? The index price is a reference price derived from...Published on Apr 15, 2026Updated on Apr 20, 2026How can I do spot trading with the Jupyter Notebook?
Learn how you can do simple Spot trading by calling the functions in the python-okx library on a Jupyter Notebook.1. How can I run Python code snippets on a Jupyter Notebook? The Jupyter Notebook is an incredibly powerful and easy-to-use tool for Python development and data analysis. You can run a Jupyter Notebook server on Windows, Mac OS or Linux. This tutorial provides a pretty comprehensive guide on how to get a Jupyter Notebook up and running.2. How can I install the python-okx package?Published on Sep 29, 2023Updated on Sep 10, 2025552How do I start trading X-Perps on OKX?
It covers: Placing a trade from the chart Placing a trade from the order panel Choosing limit vs market Setting take-profit / stop-loss (TP/SL) Reviewing liquidation price Cancelling an order if you change your mindBefore you place an X-Perps order Please make sure: The product is available to your account and region Your suitability assessment is completed (required before accessing X-Perps) You have selected the correct X-Perps contract Your funds are in the correct account path (most setups requirePublished on Apr 9, 2026Updated on Apr 22, 2026Why was my X-Perps order rejected?
Verify your available margin and account type (Funding vs Trading). Review order size, price, and trigger parameters. Check whether any risk-control or regional restrictions apply. Adjust the order and try again, if appropriate. If the issue continues, contact OK Assistant and share the details (product / contract, timestamp, order type, and a screenshot or error message if available) with our Customer support. To learn more about OKX products, visit here.Published on Apr 9, 2026Updated on Apr 22, 2026How do I automate my trades?
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. Develop and test your strategy: write your trading logic, backtest it with historical data, and test in a simulated environment. Deploy and monitor: once satisfied with the performance, deploy the bot and monitor its activity regularly.Published on Oct 1, 2024Updated on Nov 17, 202510How do I withdraw and transfer funds between my Funding and Trading accounts for X-Perps?
Before placing an order, review: which account currently holds your funds (Funding vs Trading) whether your balance is marked as available for trading whether any funds are tied to open orders or positions whether a transfer between accounts is required and has been completedHow do I withdraw funds from my X-Perps account? Withdrawals on OKX are handled through the Withdraw flow and are typically initiated from the Funding account.On the app Go to Assets / Portfolio Select Withdraw.Published on Apr 9, 2026Updated on Apr 21, 2026How does leverage work in X-Perps trading?
Before using leverage, you should still consider: Position size Margin mode (portfolio margin, selected vs isolated) Stop-loss or exit plan Available margin buffer Volatility conditions Funding rate impacts on the position over time A smaller, more controlled position is often easier to manage than a larger position with aggressive leverage.Practical reminders before using leverage in X-Perps Before placing a leveraged X-Perps order, review the following: Selected leverage level (up to 10x availablePublished on Apr 9, 2026Updated on Apr 22, 2026X-Perps fees overview: trading fees, funding, and other costs
If your result looks different than expected, check below in your app: executed entry and exit details fees charged on executions funding payments (if applicable) time held vs relevant funding settlement times partial fills or partial closesImportant note Fee schedules, funding rates, and applicable product mechanics can change over time and may vary by product, account status, region, and platform configuration. To learn more about OKX products, visit here.Published on Apr 9, 2026Updated on Apr 22, 2026How do I enable allowlist? (app)
Whitelist vs. No-Verification Address: These settings are independent and do not affect each other. New Address Withdrawal Lock: If New Address Lock is enabled, newly added whitelist addresses cannot be used for withdrawals for 24 hours, adding extra security.Published on Aug 14, 2023Updated on Apr 17, 20261,914What's OKX Security Assistant?
Below are the best practices when it comes to handling risky situations: What the OKX Security Assistant displays when there's a riskSingle-item uninstall vs. one-click uninstall Single-item uninstall: suitable when there are only a few risk items and you want to confirm their sources one by one.Published on Jan 15, 2026Updated on Feb 13, 202622How can I do derivatives trading with the Jupyter Notebook?
Let's use the comprehensive features available in python-okx at a higher level!Derivatives Types There are three types of derivatives available for trading on OKX: Expiry Perpetual Options You can head over to Bitcoin derivatives, explained: Expiry, perpetual and options to learn about the characteristics of different types of derivatives on OKX. In this tutorial, we'll use Perpetual as an example.FAQ1.Published on Sep 28, 2023Updated on Feb 12, 2026197Zero-Knowledge Proofs: what are zk-STARKs and how do they work? (zk-Stark V2)
This speedup is due to the usage of the Plonky2 framework, which compiles Rust-coded circuits into efficient machine language instead of using slower Python scripts. We also enhanced Plonky2 to run some computations on GPUs, reducing the time by an extra 30%. Better auditability: With Version 2, we use a high-level framework that handles complex cryptographic details for us. This makes our code clearer, more readable, and less prone to errors.Published on Oct 21, 2024Updated on Feb 11, 202693
Showing 1-12 of 12 articles