Skip to main content

Binance Demo Environment

Binance provides a Demo Mode for testing API integrations with realistic market data. Launched in November 2025, demo mode is a unified spot + futures testing environment that replaces the legacy separate testnets and offers a more production-like experience. A single API key created at demo.binance.com works for both spot and USDT-M futures.

Supported Account Types

Only spot and USDT-M futures trading are available in the demo environment.

Account TypeDemo SupportNotes
SpotFull spot trading functionality
USDT-M FuturesFull USDT-margined futures functionality
MarginNot available in demo
Isolated MarginNot available in demo
COIN-M FuturesUses legacy testnet instead (see below)
warning

Margin accounts are not available in demo mode. Only spot and USDT-M futures accounts can be discovered and tested in the demo environment.

COIN-M Futures Testnet

COIN-M futures are not part of the unified demo environment. They remain on the legacy testnet with separate API keys.

ServiceProductionLegacy Testnet
REST APIhttps://dapi.binance.comhttps://testnet.binancefuture.com
WebSocket Streamswss://dstream.binance.comwss://dstream.binancefuture.com

Base URLs

Replace the production endpoints with demo-specific URLs. All other request/response formats remain identical.

Spot

ServiceProductionDemo
REST APIhttps://api.binance.com/apihttps://demo-api.binance.com/api
WebSocket APIwss://ws-api.binance.com/ws-api/v3wss://demo-ws-api.binance.com/ws-api/v3
WebSocket Streamswss://stream.binance.com/wswss://demo-stream.binance.com/ws
WebSocket Streams (alt)wss://stream.binance.com:9443/wswss://demo-stream.binance.com:9443/ws

USDT-M Futures

ServiceProductionDemo
REST APIhttps://fapi.binance.comhttps://demo-fapi.binance.com

API Key Setup

Demo mode requires a separate API key created from the demo portal.

  1. Log in to Binance Demo Trading
  2. Navigate to API Key Management
  3. Create a new API key
  4. Configure permissions (same options as production: Reading, Spot & Margin Trading, Futures)
note

Demo API keys are separate from production keys. You cannot use production API keys with demo endpoints or vice versa.

Demo vs. Legacy Testnets

Demo ModeSpot Testnet (legacy)Futures Testnet (legacy)
Portaldemo.binance.comtestnet.binance.visiontestnet.binancefuture.com
Spot
USDT-M Futures
COIN-M Futures
Unified API Key✓ (spot + futures)Spot onlyFutures only
Market DataRealistic (mirrors live)Independent (synthetic)Independent (synthetic)
BalancesResettable via UIMonthly auto-resetMonthly auto-reset
Rate Limits / FiltersMatches production exactlyGenerally similarGenerally similar
FeaturesMatches productionMay include unreleasedMay include unreleased
info

Realistic market data is not identical to real market data. Do not assume trading strategies that work in demo mode will work on the live exchange.

Limitations

  • No margin trading — margin and isolated margin accounts are not supported
  • No COIN-M futures — COIN-M remains on the legacy testnet at testnet.binancefuture.com
  • Maintenance windows — order placement and cancellation are unavailable during scheduled maintenance (announced via Binance changelog)
  • Balance reset — balances can be reset at any time via the demo UI, which may affect ongoing testing