快速开始
#
API Key 权限设置- 新创建的API的默认权限是
只读
。 - 如果需要通过API提款, 需要在UI修改权限, 选中
允许提现
。
#
账户#
现货账户新注册的币安账号都会有一个现货(SPOT
)账号。
#
杠杆账户为了开设杠杆(MARGIN
)账户, 可以参考Binance杠杆交易账户设置指南
#
API 代码库#
Connectors以下有一些轻量级的代码库,使不同语言的用户能够直接调用现货的 Binance 公共 API:
- Python https://github.com/binance/binance-connector-python
- Node.js https://github.com/binance/binance-connector-node
- Ruby https://github.com/binance/binance-connector-ruby
- DotNET C# https://github.com/binance/binance-connector-dotnet
- Java https://github.com/binance/binance-connector-java
- Rust https://github.com/binance/binance-spot-connector-rust
- PHP https://github.com/binance/binance-connector-php
- Go https://github.com/binance/binance-connector-go
- Typescript https://github.com/binance/binance-connector-typescript
#
Postman CollectionsPostman 集合现已推出。推荐给寻求快速和轻松地开始使用 API 的新用户。
https://github.com/binance/binance-api-postman
#
Swagger以下有提供包含 RESTful API 的 OpenAPI 规范的 YAML 文件,以及可供参考的 Swagger UI 页面。