OKX demo trading is a practice copy of the trading screens funded with virtual money, and nothing you do there touches your real balance. The real danger is the moment you switch back, because the two modes look almost the same. Get into the habit of checking for the demo label every time you change modes, and the rest is straightforward.
What you can practise in demo mode
Your account gets a second environment with its own virtual assets, orders and positions. OKX presents it as a way to practise without real money and states that demo trades leave your real assets untouched.
OKX's help center says demo mode covers spot, margin, futures and options. That makes it a good place to learn order types, margin modes and leverage settings before risking money on them, or to test an automated strategy.
Turning on OKX demo trading
On the website, hover over the trade menu in the top bar and pick the demo trading entry. In the app, open the main menu from the home screen and tap demo trading, which OKX places in the trade group and among the shortcuts.
The screen reloads in demo mode and shows your total demo assets. Look for the demo label before you place anything. Live and demo layouts are nearly identical, and that label is the fastest way to know where you are.
Running your first practice order
Orders work exactly as on the live screen. Open the trade page, choose a pair or contract, select an order type, fill in price and amount and submit. For futures, pick the contract type and margin currency first, then go long or short.
Spend your demo time on the moves that hurt most when done wrong with real money: placing a stop loss, switching between cross and isolated margin, changing leverage and closing part of a position. Each control sits where it does in live mode, so what you learn transfers directly.
Topping up a drained demo balance
Each demo account begins with a preset amount of virtual funds. OKX's help pages do not say how much, but the demo assets page displays it. If you burn through it, you can reset.
First close every open position and cancel every pending order, as OKX requires. Then go to the demo assets page and choose reset, which on some screens is hidden behind a more menu beside the asset. Your balance goes back to its starting amount.
Getting back to live trading safely
One control takes you out of demo mode, though where it sits and what it says depends on the platform. OKX's guides mention an exit control next to the demo trading label, a return to live trading button at the top right of the app, and a switch to live trading link at the foot of the web page.
Once you switch, check that the demo label has disappeared and that the balances are your real ones before placing an order. The most common costly slip is sending a real order while believing you are still practising.
Why demo results can mislead you
OKX states that the demo and live environments are separate and that market data from one cannot serve as a reference for the other. Demo prices and order book depth are not the live market. An order that fills instantly in demo could fill at a worse price, fill partly or not fill at all on the real book.
Some settings follow you and some do not. OKX says demo trading uses the fee tier of your main account. You cannot create sub-accounts inside demo mode, so create them in live mode first and then use them in demo.
With nothing at stake, a strong demo record proves you understand the mechanics and says little about whether a strategy makes money. Leveraged products can lose your entire margin, and which ones you may use depends on your country and OKX entity, so check your region's rules before going live.
Creating a demo API key for bots
Live API keys are rejected in demo mode. OKX's documentation requires a separate key created inside the demo environment. Switch to demo trading, open the personal or account area of the demo site, go to the demo trading API page and create the key there. You set a passphrase and permissions just as with a live key, and a read-only key cannot place orders.
Every demo request needs the header x-simulated-trading set to 1. Leave it off, or send a live key, and OKX answers with error 50101, meaning the key does not match the current environment. OKX's API documentation also lists separate WebSocket addresses for demo trading.
Demo trading keys do not expire, according to OKX. The demo API has gaps: OKX lists withdrawal, deposit, and purchase and redemption functions as unsupported. Test your order logic in demo and plan to test funding flows another way.
Questions and answers
Does OKX demo trading cost anything?
No. OKX supplies the virtual funds, and demo activity neither uses nor affects your real assets.
My OKX demo balance is gone, how do I refill it?
Close all open positions and cancel all pending orders, then pick reset on the demo assets page. The balance goes back to its starting amount.
Will my normal OKX API key work in demo?
No. Create a separate key inside the demo environment and include the header x-simulated-trading set to 1 on each request. A mismatch produces error 50101.
Does OKX demo use real market prices?
Do not count on it. OKX says demo and live are separate environments and market data from one should not be used as a reference for the other.
Can demo profits be withdrawn?
No. Demo funds are virtual, have no value outside demo mode and cannot be withdrawn or turned into real assets.
Crypto trading carries a high risk of loss, and leveraged products can lose your whole deposit. Nothing here is investment advice. Check that the exchange is available in your country before you sign up.
Related guides
- APIOKX create API keyCreate an OKX API key without surprises: where the form lives, a passphrase only you know, read vs trade vs withdraw, IP binding and the 14-day expiry.
- DepositHow to deposit on OKXHow to deposit on OKX safely: verify first, match coin and network on both sides, copy the address and memo, choose an account and track it until it lands.
- VerificationOKX KYC levelsOKX KYC levels now work as one verification in stages. See what each stage asks for, what stays locked until you verify and where to find your own limits.
- Referral codeOKX referral codeAn OKX referral code only counts if it is on the sign-up form. See where it goes, why it cannot be added later, how to confirm it and what blocks rewards.