$ show binance/binance-spot-api-docs
This repository contains the official documentation for Binance Spot trading APIs. It is not a software application or data research project; it is a comprehensive reference for developers building trading clients. The documentation covers REST API, WebSocket API, WebSocket Streams, FIX API, and Simple Binary Encoding (SBE) protocols. It includes detailed specifications for endpoints, message formats, authentication, rate limits, error codes, and trading rules. The repository also provides versioned SBE XML schemas, FIX QuickFIX schemas, changelogs, and frequently asked questions. The documentation is bilingual (English and Chinese) and is actively maintained with frequent updates to reflect API changes. While the repository contains no executable code, the schema files and reference documents are essential for implementing Binance Spot integration.
The LLM identified 6 files worth highlighting for reuse:
The latest SBE (Simple Binary Encoding) schema for Binance Spot production API. Defines all binary message formats for REST and WebSocket responses, including market data, orders, account, and user data streams. This file is reusable as a source for generating SBE decoders/encoders in any language. It demonstrates a well-structured pattern for high-performance binary protocol specification with versioning, optional fields, and repeating groups.
FIX protocol schema for spot order entry. Defines message types, fields, and components for trading operations (NewOrder, Cancel, Replace, etc.) in the FIX binary format. Reusable for any FIX client implementation targeting Binance, and demonstrates clean separation of message definitions and field reuse.
Centralized enumeration definitions for the Binance Spot API, covering order statuses, types, sides, time-in-force, self-trade prevention modes, symbol statuses, and permissions. This file is reusable as a reference for any client library and ensures consistent mapping across protocols (REST, WebSocket, FIX, SBE).
Documentation of all exchange and symbol filters (PRICE_FILTER, LOT_SIZE, MIN_NOTIONAL, etc.) that must be satisfied for order placement. This is a reusable reference for implementing order validation logic in any trading client, and it demonstrates a complete set of trading constraints.
Comprehensive list of error codes with descriptions, grouped by category (10xx general, 11xx filter failures, 20xx permission issues). Reusable for error handling in any integration, and provides a clear pattern for documenting API error responses.
Detailed explanation of Smart Order Routing (SOR) for Binance Spot, including how it works, when it applies, and how it affects order execution. This is a reusable reference for developers implementing SOR logic and demonstrates clear documentation of a complex trading feature.