Public APIs
Binance favicon

Binance

Cryptocurrency

Exchange for Trading Cryptocurrencies based in China.

Binance's website screenshot

About Binance

This repository contains the official documentation for Binance's Spot trading APIs and streams, covering REST API, WebSocket API, FIX API, and market data streams (including Simple Binary Encoding). It documents endpoints, parameters, payloads, enums, error codes, and filters for Spot trading, alongside coverage of related Binance services such as Margin Trading, Derivatives (UM/CM Futures, Options, Portfolio Margin), Wallet, Sub-Account, Simple Earn, Staking, Convert, Pay, and NFT APIs.

The repository is aimed at developers building applications or trading systems that integrate with Binance, providing reference material for connecting via REST, WebSocket, or FIX protocols. It includes links to official connector libraries in Python, Node.js, Ruby, .NET, C#, Java, Rust, PHP, Go, and TypeScript, as well as Postman collections and a Swagger/OpenAPI specification.

Additional resources include a Spot Testnet for practicing trading without real funds (API-only, limited to /api endpoints), FAQ documents explaining API behaviors such as commission calculations, self-trade prevention, market orders, and smart order routing, and a changelog tracking updates to the APIs.

Key features

  • Spot REST API for trading, market data, and account management
  • Spot and User Data WebSocket streams for real-time updates
  • FIX API access to the exchange
  • SPOT Testnet for practicing trading via API
  • Simple Binary Encoding (SBE) market data streams
  • Official connector libraries in Python, Node.js, Java, Go, Rust, C#, PHP, and TypeScript

Frequently asked questions

What is this repository?

It is the official documentation for the Binance Spot APIs and Streams, covering REST, WebSocket, and FIX API details.

What programming languages are supported?

Official connector libraries are provided for Python, Node.js, Ruby, .NET/C#, Java, Rust, PHP, Go, and TypeScript.

Is there a testnet available?

Yes, a SPOT Testnet is available via the API for practicing trading, though only /api/* endpoints are supported.

Who is this documentation for?

It is intended for developers integrating with Binance's Spot trading API and WebSocket/FIX streams.

Are there tools to help get started quickly?

Postman collections and a Swagger/OpenAPI specification with a Swagger UI page are available for the REST API.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product