Demo Mode for SPOT Trading
This page explains how to use Demo Mode Trading via the API.
How can I trade on Demo Mode using the API?
- After logging into your Binance account, click on Binance Demo Trading and then you can create an API key in the API Key Management page.
- Follow the official documentation of the SPOT API, replacing the URLs of the endpoints/methods with the following values:
| Service | Spot API URLs | Demo Mode URLs |
|---|---|---|
| REST API |
|
|
| WebSocket API |
|
|
| WebSocket Market Streams |
|
|
|
|
|
| WebSocket Market Streams (SBE) |
|
|
|
|
|
|
FIX (Send FIX requests; receive FIX responses) |
|
|
|
|
|
|
|
|
|
FIX SBE (Send FIX requests; receive FIX SBE responses) |
|
|
|
|
|
|
|
|
|
FIX SBE (Send FIX SBE requests; receive FIX SBE responses) |
|
|
|
|
|
|
|
What is the difference between SPOT Testnet and SPOT Demo Mode?
| SPOT Testnet | SPOT Demo Mode |
|---|---|
| Balances are reset every month. | You can reset your balance whenever you want via the UI. |
| SPOT Testnet sometimes has new features before the live exchange. | Demo Mode always has the same features as the live exchange. |
| Testnet's prices and order books are independent from the live exchange. | Demo Mode's prices and order books are similar to the live exchange. |
| IP Limits, Unfilled Order Count, Exchange Filters are generally the same as the live exchange. | IP Limits, Unfilled Order Count, Exchange Filters are exactly the same as the live exchange. |
In summary:
- SPOT Testnet is useful to integrate with upcoming features not yet available on the live exchange.
- Demo Mode is useful to test against realistic market data.
[!WARNING] Realistic market data is not equal to "real" market data. Do not assume trading strategies that work in Demo Mode will work in the live exchange.
What happens when Demo Mode is under maintenance?
- There will be an announcement on the CHANGELOG page prior to downtime.
- During maintenance, you will not be able to place or cancel orders.