Files
ritmex-bot/docs/binance/binance-spot/demo-mode_general-info.md
2026-02-27 10:52:43 +08:00

4.7 KiB
Raw Permalink Blame History

title, source, fetched_at
title source fetched_at
General Info | Binance Open Platform https://developers.binance.com/docs/binance-spot-api-docs/demo-mode/general-info 2026-02-26T10:38:06.931Z

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?

  1. 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.
  2. 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

  • wss://ws-api.binance.com/ws-api/v3

  • wss://ws-api.binance.com:9443/ws-api/v3

  • wss://demo-ws-api.binance.com/ws-api/v3

WebSocket Market Streams

  • wss://stream.binance.com/ws

  • wss://stream.binance.com:9443/ws

  • wss://demo-stream.binance.com/ws

  • wss://demo-stream.binance.com:9443/ws

  • wss://stream.binance.com/stream

  • wss://stream.binance.com:9443/stream

  • wss://demo-stream.binance.com/stream

  • wss://demo-stream.binance.com:9443/stream

WebSocket Market Streams (SBE)

  • wss://stream-sbe.binance.com/ws

  • wss://stream-sbe.binance.com:9443/ws

  • wss://demo-stream-sbe.binance.com/ws

  • wss://demo-stream-sbe.binance.com:9443/ws

  • wss://stream-sbe.binance.com/stream

  • wss://stream-sbe.binance.com:9443/stream

  • wss://demo-stream-sbe.binance.com/stream

  • wss://demo-stream-sbe.binance.com:9443/stream

FIX
(Send FIX requests; receive FIX responses)

  • tcp+tls://fix-oe.binance.com:9000

  • tcp+tls://demo-fix-oe.binance.com:9000

  • tcp+tls://fix-dc.binance.com:9000

  • tcp+tls://demo-fix-dc.binance.com:9000

  • tcp+tls://fix-md.binance.com:9000

  • tcp+tls://demo-fix-md.binance.com:9000

FIX SBE
(Send FIX requests; receive FIX SBE responses)

  • tcp+tls://fix-oe.binance.com:9001

  • tcp+tls://demo-fix-oe.binance.com:9001

  • tcp+tls://fix-dc.binance.com:9001

  • tcp+tls://demo-fix-dc.binance.com:9001

  • tcp+tls://fix-md.binance.com:9001

  • tcp+tls://demo-fix-md.binance.com:9001

FIX SBE
(Send FIX SBE requests; receive FIX SBE responses)

  • tcp+tls://fix-oe.binance.com:9002

  • tcp+tls://demo-fix-oe.binance.com:9002

  • tcp+tls://fix-dc.binance.com:9002

  • tcp+tls://demo-fix-dc.binance.com:9002

  • tcp+tls://fix-md.binance.com:9002

  • tcp+tls://demo-fix-md.binance.com:9002

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?