Quick Start
#
API Key Setup- Some endpoints will require an API Key. Please refer to this page regarding API key creation.
- Once API key is created, it is recommended to set IP restrictions on the key for security reasons.
- Never share your API key/secret key to ANYONE.
#
API Key Restrictions- After creating the API key, the default restrictions is
Enable Reading
. - To enable withdrawals via the API, the API key restriction needs to be modified through the Binance UI.
#
Enabling Accounts#
Spot AccountA SPOT
account is provided by default upon creation of a Binance Account.
#
Margin AccountTo enable a MARGIN
account for Margin Trading, please refer to the Margin Trading Guide
#
Spot TestnetUsers can use the SPOT Testnet to practice SPOT
trading.
Currently, this is only available via the API.
Please refer to the SPOT Testnet page for more information and how to set up the Testnet API key.
#
API Library#
Python connectorThis is a lightweight library that works as a connector to Binance public API, written in Python.
https://github.com/binance/binance-connector-python
#
Node.js connectorThis is a lightweight library that works as a connector to Binance public API, written for Node.js users.
https://github.com/binance/binance-connector-node
#
Ruby connectorThis is a lightweight library that works as a connector to Binance public API, written for Ruby users.
https://github.com/binance/binance-connector-ruby
#
DotNET connectorThis is a lightweight library that works as a connector to Binance public API, written for C# users.
https://github.com/binance/binance-connector-dotnet
#
Java connectorThis is a lightweight library that works as a connector to Binance public API, written for Java users.
https://github.com/binance/binance-connector-java
#
Postman CollectionsThere is now a Postman collection containing the API endpoints for quick and easy use.
This is recommended for new users who want to get a quick-start into using the API.
For more information please refer to this page: Binance API Postman
#
SwaggerA YAML file with OpenAPI specification on the RESTful API is available to be used, as well as a Swagger UI page for the consulting.