Skip to main content

trio based asynchronous binance SDK

Project description

This is an unofficial Python wrapper for the Binance exchange REST API v3. I am in no way affiliated with Binance, use at your own risk.

And this repository is forked from python-binance, but has only async client, and works only with trio or trio-compatible asynchronous frameworks. I have kept the REST API as close to the original as possible, but using a completely different approach for websocket streams, due to the design of trio and structured concurrency.

Source code

https://github.com/halfelf/trio-binance

Quick Start

Register an account with Binance.

Generate an API Key and assign relevant permissions.

pip install trio-binance
# or, I suggest using uv to manage your Python dependencies.
uv add trio-binance

Example

Check pytest file under tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trio_binance-0.5.1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trio_binance-0.5.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file trio_binance-0.5.1.tar.gz.

File metadata

  • Download URL: trio_binance-0.5.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trio_binance-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d1b36b0b1b67e7d496e9ca53cb23e9b294b0a6633a331b64572718f45bf290f6
MD5 4959bf1f4c3c811d31a551bf8b76e7f0
BLAKE2b-256 5df13a5733c8cb7cafcd13a2289e4ab16d2203dbb84f169b9f3eec08ff17706b

See more details on using hashes here.

File details

Details for the file trio_binance-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: trio_binance-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trio_binance-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1413077e770afd67fd7e21d687cfd7ef2c832af91ca9065c03da872e44ee4a6e
MD5 a89f42f0e5ecf9949c908e731abd071d
BLAKE2b-256 83592957e4bfab40fe79afd091b16ee33f0e6c4810c1ec4ecff833f033ac673f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page