Build a cryptocurrency trading bot that places and manages orders on Binance's spot market using the REST API
Create a real-time portfolio tracker using WebSocket streams to receive live price and trade updates
Integrate Binance market data into a charting or analytics application without managing low-level connection details
Practice order management safely using the Binance testnet environment before trading with real funds
Requires a Binance account and API key, a testnet environment is available for practicing without real funds.
This repository is the official documentation for Binance's spot trading APIs. Binance is one of the world's largest cryptocurrency exchanges, and this repo is where they publish the technical reference material that developers need to connect software to the exchange. If you are building a trading bot, a portfolio tracker, or any application that interacts with Binance's spot market, this is the authoritative source for how those connections work. The documentation covers several distinct ways to talk to the exchange. The REST API lets you send requests over standard web connections to place orders, check balances, and retrieve market data. The WebSocket API provides a persistent connection that pushes real-time updates to your application without needing to ask repeatedly. The FIX API is an older protocol used by professional trading firms. There are also streaming market data feeds in both standard and a compact binary format called SBE, which is designed for high-frequency use cases where every millisecond matters. Beyond the core spot market, the repo links out to documentation for Binance's other services: margin trading, futures contracts, options, wallet management, savings products, and more. Those live on Binance's developer portal rather than in this repo, but this README serves as a central index pointing to all of them. The FAQ section answers practical questions that come up frequently when using the API: how order types behave, how trading fees are calculated, how Binance prevents a user from accidentally trading against themselves, and how the exchange handles order limits. A set of connector libraries in Python, Node.js, Java, Go, Rust, and several other languages is listed here as well. These are thin wrappers that handle the low-level details of signing requests and managing connections, so developers do not have to implement those parts from scratch. A testnet environment is also available for anyone who wants to practice without using real funds.
← binance on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.