OKX demo trading is a simulated version of the trading screen that you use with virtual funds, and your real balance stays untouched by anything you do there. The danger sits at the switch between modes. Someone who believes demo mode is still on can place a real order, so each change of environment calls for a look at the demo label.
What OKX demo trading includes and what it borrows from your real account
Demo trading adds a second environment to your account, kept apart from the first, with virtual assets, orders and positions of its own. OKX presents it as somewhere to practise with no real money involved and states that trades made in demo leave your real assets unaffected.
The OKX help center lists spot, margin, futures and options as covered. That makes it a place to learn leverage settings, margin modes and order types before real funds are involved, or test an automated strategy.
A few rules connect the two environments. Your main account's fee tier is the one demo trading applies, OKX says. Sub-accounts cannot be created from demo mode. They have to be made in live mode, and after that demo can use them.
Moving between demo and live, and telling them apart
The demo label is the only quick sign of which environment you are in, because the two layouts are nearly identical. Check for it before you place anything.
On the website you enter demo mode from the trade menu in the top bar, which opens on hover and has an entry for demo trading. In the app, the main menu on the home screen has a demo trading item. OKX lists it under the trade group as well as among the shortcuts. After the switch the screen reloads and your total demo assets appear.
Leaving takes one control, but its name and position differ from platform to platform. Three versions appear in the guides from OKX. One is an exit control placed by the demo trading label. The app has a button at its top right for returning to live trading. The web page has a link at the bottom for switching to live trading.
Once you have switched back, make sure the demo label is gone and the balances on screen are your real ones, and only then place an order. The main risk of moving between the two is a real order placed by someone who thinks demo mode is still active.
What to practise in demo mode
Orders are placed just as they are on the live screen. Open the trade page and use the selector to choose a contract or pair. Set the order type, type the price and amount, then submit. With futures you pick the margin currency and the contract type first, and after that you open a long or a short position.
Spend the practice time on actions that cost money when they go wrong with real funds. Set a stop loss, switch between cross and isolated margin, change the leverage and close part of a position. Live mode keeps each of these controls in the same spot.
Restoring the virtual balance after you run it down
You can restore a depleted demo balance to its starting amount. A predefined sum of virtual funds is given to every demo account at the start. How much that is goes unstated in the help pages from OKX, but your demo assets page shows it.
OKX sets one condition first. All open positions must be closed and all pending orders cancelled.
After that, open the demo assets page and choose the reset option. Some screens put it in a more menu next to the asset. The balance then goes back to its initial amount.
Why a good demo result does not carry over to live trading
Prices in demo differ from the live market. OKX states that demo and live are kept separate and that market data from one cannot serve as a reference for the other. The same goes for order book depth.
Fills are where the gap shows. An order filled instantly in demo might, on the real order book, get a worse price, a partial fill or no fill.
Demo money also carries no stakes. From a strong demo result you learn that the mechanics are clear to you. Whether a strategy would make money is a question it leaves open.
With leveraged products, losing the entire margin is a real risk. Their availability also differs with the country and the OKX entity, so find out what your region allows before you move to live trading.
Creating an API key for OKX demo trading
Demo trading rejects a live API key. The documentation from OKX requires you to create a separate key from inside the demo environment.
Switch to demo trading first. Then find the personal or account area of the demo site, locate the API page for demo trading and make the key there. You set a passphrase and permissions as on a live key, and a key limited to read cannot place orders.
Each demo request has to include the request header x-simulated-trading with the value 1. A request without the header, or one signed with a live key, gets error 50101 back from OKX. The error means that key and current environment do not match.
Limits of the demo API
The demo API covers less than the live one. Withdrawal, deposit, and purchase and redemption are the functions OKX names as unsupported. Use demo to test order logic and plan a separate test for funding flows.
Demo trading has WebSocket addresses of its own, which OKX publishes in the API documentation.
According to OKX, a demo trading key never expires.
Common questions
Is there a charge for OKX demo trading, and can it touch my real funds?
It is free to use. The virtual funds come from OKX, and demo trades neither use nor affect your real assets.
Is there a way to withdraw demo profits or convert them to real money?
No. The funds exist only as virtual balances inside the demo environment, where they have no outside value, and you cannot withdraw them or convert them to real assets.
How much virtual money does a demo account start with?
The amount is not given in OKX's help pages. Your demo assets page displays it, and a reset returns the balance to that initial amount.
Which products can I practise in the demo environment?
Spot, margin, futures and options, according to the OKX help center.
What does error 50101 mean on a demo request?
Key and environment do not match. Create the key inside demo trading and send the header x-simulated-trading with the value 1 on each request.
Which fee tier does demo trading apply?
The one your main account has. That same fee tier is used in demo, OKX says.
Can I open a sub-account from demo mode?
No. You create a sub-account in live mode, and from then on it is usable in demo.
You can lose money trading crypto, and with leveraged products the entire deposit can go. This site gives no investment advice. Before you register, confirm that the exchange accepts residents of your country.
More guides in this section
- APIOKX create API keyCreate an OKX API key on the website, store its three values, choose narrow permissions, bind IPs and avoid the 14-day expiry and common error codes.Checked on:
- DepositHow to deposit on OKXLearn how to deposit on OKX: check the minimum, match the network, paste the right address and memo, pick the receiving account and trace a late deposit.Checked on:
- VerificationOKX KYC levelsUnderstand OKX KYC levels as they work now: the verification stages, what an unverified account is blocked from, and where your own limits appear.Checked on:
- Referral codeOKX referral codeFind out when an OKX referral code must be entered, how to fix a prefilled code, how to confirm a referrer in the app and what can block rewards.Checked on: