# sammchardy/python-binance

Binance Exchange API python implementation for automated trading

Repository: https://github.com/sammchardy/python-binance
Canonical: https://ross.abutalabs.com/products/python-binance
Homepage: https://python-binance.readthedocs.io/en/latest/
Language: Python
License: MIT
License Family: permissive
Topics: binance, python, python2, python3, websockets, cryptocurrency, api
Last push: 2026-06-08T11:48:57+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 86, release rhythm 87, longevity 100
- inputs: {"age_days": 3306, "days_push": 86, "days_rel": 86, "gap_med": 17, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7205, forks 2267 (observed 2026-08-28T04:09:56.607730+00:00)

## What it is
An unofficial Python wrapper for the Binance exchange REST API v3, covering general, market data, and account endpoints with asyncio and websocket support. It handles authentication (RSA/EDDSA), timestamps, and exception handling for automated cryptocurrency trading.

## Use cases
- automate trading on binance
- fetch market data from binance api in python
- place orders programmatically on binance
- stream binance websocket data
- build a crypto trading bot for binance
- test strategies on binance testnet or demo trading

## When to choose
- you need full coverage of Binance spot/futures REST endpoints in Python
- you want asyncio and websocket streaming support out of the box
- you need demo/testnet trading support for Binance

## When to avoid
- you trade on exchanges other than Binance (consider ccxt)
- you need an official, exchange-supported SDK
- you want a GUI or no-code trading tool

## Facets
- artifact type: library
- maturity: active
- function: http-client, websocket, auth, sdk
- domain: fintech, apis
- platform: python, cross-platform
- tags: binance, trading, crypto-exchange, rest-api, asyncio, trading-bot, cryptocurrency, automation

## Member repositories
- sammchardy/python-binance (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.607730+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:39:51.499310+00:00, confidence not recorded.
  - readme: https://github.com/sammchardy/python-binance (fetched 2026-08-28T04:09:56.607730+00:00, sha ce0e38c21d15)
  - registry_pypi: https://pypi.org/pypi/python-binance/json (fetched 2026-08-29T08:35:23.762580+00:00, sha 59102a37a350)
- Data as of 2026-08-30T08:39:29.467469+00:00.
