Skip to content

binance/binance-connector-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

213 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.10 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.

About

Simple connector to Binance Public API

Topics

Resources

License

Stars

2.9k stars

Watchers

54 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages