Swagger is a set of tools around OpenAPI Specification that can help you design, build, document and consume REST APIs.
Binance now offers a YAML collection file on Binance Public Spot API to help developers' consulting of each endpoint through an interactive API documentation via Swagger UI.
/api/*
/sapi/*
There's several options for the approach:
GitHub Pages:
Local UI instance:
./start.sh
Swagger Inspector:
IDE (Integrated Development Environment):
Swagger Hub:
Export
section to export as Client SDK, Server Stub or Documentation in multiple languages.Futures and Vanilla Options APIs are not supported:
/fapi/*
/dapi/*
/vapi/*
CORS restrictions: Using Swagger UI beyond as API Documentation consulting, i.e, by actually trying out requests can result in invalid responses for endpoints requiring API Key (requests with header X-MBX-APIKEY
). Swagger Inspector doesn't have this limitation.
No integration of automated generation for dynamic parameters, such as signature
and timestamp
.
Contributions are welcome!
If you've found an issue within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please open a topic at our Binance API Community Forum.