Skip to main content

Binance SDK

Tribulnation SDK implementation for Binance.

Installation

pip install tribulnation-binance

Public market data

BinanceMarket.new(public=True) discovers spot and usdm. Both serve candles and tickers; usdm also serves funding history, next funding and perp_stats. Its bulk snapshots include actively trading perpetuals, not dated futures. Perp stats combine bulk pricing/funding with a public open-interest request per market, limited to five concurrent requests. These are separate observations, not an atomic snapshot. No futures account credentials are required.

Reporting

Reporting is explicitly spot-side: snapshots contain Spot, Funding and Simple Earn balances; history contains spot fills, deposits/withdrawals and Spot ↔ Funding transfers. Futures, margin, options and Portfolio Margin are not inspected or represented as zero balances. No Futures permission or scope configuration is needed. Failures on supported reads propagate instead of becoming empty results. The underlying Typed futures APIs and existing public futures market data are unchanged.

Reporting.history(start=None, end=None) accepts omitted bounds. end defaults to UTC now. When start is omitted, deposits/withdrawals start 90 days before end and Spot/Funding transfers six calendar months before it. These are default query horizons, not completeness guarantees; explicit bounds are preserved and split into legal endpoint windows.

Spot fill history discovers and sweeps the venue's published spot symbols. No spot_markets or usdm_markets configuration is required or accepted. Spot fills walk retained trade ids, filtering any supplied time bounds locally. Discovery does not use current balances or open positions, so closing a position does not remove its market from the sweep. A full sweep can require many requests.

API history is best-effort. Delisted symbols absent from discovery, venue retention and records beyond an inseparable endpoint cap may leave gaps for file ingestion.

Metadata

Release files for tribulnation-binance 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tribulnation-binance 0.4.0
File Size Uploaded
tribulnation_binance-0.4.0.tar.gz 22.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tribulnation-binance 0.4.0
File Interpreter ABI Platform
tribulnation_binance-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.7 kB

Release files / tribulnation_binance-0.4.0.tar.gz

Download URL tribulnation_binance-0.4.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4295e2a091ef0c71f99f52f2b7daa8dfd23cc9f5d8b9869c77bbe540d1d7eb9f
BLAKE2b-256 checksum
How to use checksums
1ad9769ff4e83eb831be27326d5f3a25c1b4264a949a0eed41d74ec08692ea99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release files / tribulnation_binance-0.4.0-py3-none-any.whl

Download URL tribulnation_binance-0.4.0-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10ee7e9480c5d205c9b6c3d9bbb118f6eca5033990e94ba459fb96fa6ba29647
BLAKE2b-256 checksum
How to use checksums
062e865de354e95eeb6f6459c06d4af12347bc0023d37a58521718ef7c83fc2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page