Demo Trading
Test against OKX's simulated environment.
Currently, the API works for Demo Trading, but some functions are not supported, such as withdraw,deposit,purchase/redemption, etc.
The Demo Trading URL:
- REST:
https://openapi.okx.com - Public WebSocket:
wss://wspap.okx.com:8443/ws/v5/public - Private WebSocket:
wss://wspap.okx.com:8443/ws/v5/private - Business WebSocket:
wss://wspap.okx.com:8443/ws/v5/business
OKX account can be used for login on Demo Trading. If you already have an OKX account, you can log in directly.
Start API Demo Trading by the following steps: Login OKX —> Trade —> Demo Trading —> Personal Center —> Demo Trading API -> Create Demo Trading API Key —> Start your Demo Trading
Note: x-simulated-trading: 1 needs to be added to the header of the Demo Trading request.
Http Header Example
Demo Trading Explorer
You need to sign in to your OKX account before accessing the explorer. The interface only allow access to the demo trading environment.
- Clicking
Try it outbutton in Parameters Panel and editing request parameters. - Clicking
Executebutton to send your request. You can check response in Responses panel.

