OKX demo trading account: testing Autoview before you trade live
OKX's demo trading is a simulated-account mode built into your regular OKX login, funded with demo balances instead of real money, and Autoview connects to it as its own exchange option, OKX Demo, priced at $0. If you want to prove a new alert or a new command works before it touches real funds, this is the account to connect first.
OKX demo trading is a separate account inside OKX, not a separate site. You don't register anywhere new. You turn on Demo Trading inside your existing OKX login, and OKX gives that mode its own balances and its own API key, kept apart from your live account.
What OKX Demo Trading is
OKX built demo trading directly into its own platform: log in to your regular OKX account, switch into the Demo Trading section, and OKX credits that mode with simulated funds separate from your live balance. Orders you place there fill against OKX's real market data, so a fill looks and behaves like a live one, but nothing you do moves real money.
On Autoview, this shows up as its own exchange connection, OKX Demo, priced at $0. It's a first-class connection, not a setting on your live OKX account -- you add it separately, with its own API key, and it can run alongside your live OKX connection or entirely on its own.
Turn on Demo Trading and create its API key
Two steps happen on OKX before you touch Autoview:
- Log in to OKX, open Trade, and switch into Demo Trading. OKX credits the mode with demo funds automatically.
- From inside Demo Trading, open its own API key management (a separate screen from the live account's API page) and create a key there.
This separation matters more than it sounds like it should. A live OKX API key does not work against the demo endpoint. OKX checks the key's own environment and rejects a mismatched one outright, so if your connection fails with an environment or authorization error, the first thing to check is whether the key actually came from inside Demo Trading rather than the live API page.
Grant the demo key Read and Trade permissions, the same as you would live. Never grant Withdraw -- demo funds can't be withdrawn in the first place, so there's nothing to protect, but it's the right habit to keep either way. OKX asks you to set a passphrase when you create the key and shows the secret key once, so copy all three values before you leave that screen.
Connect it to Autoview
In Autoview, add an account and choose OKX Demo from the exchange list rather than OKX. The form asks for the same three fields as a live OKX connection:
- Passphrase: the value you set when creating the demo key.
- API Key: the public half OKX displayed.
- Secret Key: the private half OKX showed only once.
Paste the demo key's three values in, save, and run the connection test. A clean test means the demo key authenticated against the demo environment.
Sending commands: what changes, what doesn't
The command syntax is identical to live OKX. Symbols use the same hyphenated OKX instrument codes: BTC-USDT for spot, BTC-USDT-SWAP for a perpetual swap. Order types, sizing, and the rest all work the same way as the live OKX setup describes; only the account and the funds behind it differ.
The one thing that changes is how the Chrome extension picks the exchange. On the webhook platform, a webhook is already tied to whichever account you connected it to, so you never set an exchange in the command itself. On the extension, swap e=OKX for e=OKXDEMO (or the equivalent e=OKX-DEMO):
| Live OKX (extension) | OKX Demo (extension) |
|---|---|
e=OKX s=BTC-USDT b=buy p=-5% q=1 | e=OKXDEMO s=BTC-USDT b=buy p=-5% q=1 |
Add d=1 to any command first, on demo the same as live, and Autoview parses it and reports what it would have done without placing anything. Worth doing even on demo funds, since it's the fastest way to confirm the resolved order matches what you meant before you check it against the fill on OKX.
Once demo looks right
A working OKX Demo connection proves your command syntax and your alert wiring. It doesn't carry over to your live account's own API key or permissions -- those are separate on OKX, so you'll still walk through the live setup on its own terms. When you're ready, follow the getting started with OKX guide to create a live API key from the regular account page (not the demo one) and run the same dry-run-then-live check at a small size.