Skip to content
项目

binance/binance-connector-python

在 GitHub 查看

关于

用于连接 Binance 公共 API 的简单连接器

商业与金融

这些数字如何统计

实测星标增长

24小时
-2
7天
-1
15天
+1
1个月
+3

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Binance Python Connectors

Build Status Open Issues Code Style: Black Known Vulnerabilities License: MIT

Collection of auto-generated Python SDK for Binance APIs.

Prerequisites

Before using the SDK, ensure you have:

  • Python (version 3.11 or later)
  • pip (Python package manager)
  • poetry (Python package manager)

Available SDK

Documentation

For detailed information, refer to the Binance API Documentation.

Installation

Each connector is published as a separate Python package. You can install them via pip or poetry. For example:

pip install binance-sdk-spot
poetry add binance-sdk-spot

Or to install multiple connectors:

pip install binance-sdk-spot binance-sdk-margin-trading binance-sdk-staking
poetry add binance-sdk-spot binance-sdk-margin-trading binance-sdk-staking

Contributing

Since this repository contains auto-generated code using OpenAPI Generator, we encourage you to:

  1. Open a GitHub issue to discuss your ideas or report bugs
  2. Allow maintainers to implement necessary changes through the code generation process

Code Style

This repository follows PEP 8 standards and enforces Black for formatting. Before submitting a pull request, format your code:

black .

Run type checks:

mypy .

Migration Guide

If you're upgrading from the previous unified connector, refer to our Migration Guide for detailed steps on transitioning to the new modular structure.

Disclaimer

This SDK is provided by Binance on an "as is" and "as available" basis for use at your own risk. Binance makes no representations or warranties of any kind, whether express or implied, as to the operation of the SDK, its accuracy, reliability, completeness, or fitness for any particular purpose.

To the fullest extent permitted by law, Binance shall not be liable for any losses, damages, or expenses of any kind arising from or in connection with your use of, or inability to use, this SDK, including but not limited to any financial losses resulting from errors, bugs, interruptions, or inaccuracies in the SDK.

Your use of this SDK to access the Binance Platform is subject to the Binance API Key Terms and the Binance Terms of Use, which shall prevail in the event of any conflict with this disclaimer. You are solely responsible for any orders or transactions executed through the Binance Platform using this SDK.

This SDK is not intended to constitute investment advice or a recommendation to buy, sell, or hold any digital asset. You should independently evaluate and verify all information before acting.

License

This project is licensed under the MIT License - see the LICENSE file for details.

探索相关项目

加载中…