Skip to main content

Track daily availability of Binance USDT perpetual futures from Vision repository

Project description

binance-futures-availability

Python 3.11+ PyPI version License: MIT CI Status

DuckDB-based availability tracker for Binance USDT-Margined perpetual futures from Binance Vision S3.

Installation

pip install binance-futures-availability

Development installation:

git clone https://github.com/terrylica/binance-futures-availability.git
cd binance-futures-availability
pip install -e ".[dev]"

Usage

Python API

from binance_futures_availability.queries import SnapshotQueries, TimelineQueries

# Query symbols available on a specific date
with SnapshotQueries() as q:
    symbols = q.get_available_symbols_on_date('<DATE>')

# Query availability timeline for a symbol
with TimelineQueries() as q:
    timeline = q.get_symbol_availability_timeline('<SYMBOL>')

CLI

binance-futures-availability query snapshot <DATE>
binance-futures-availability query timeline <SYMBOL>
binance-futures-availability query range <START_DATE> <END_DATE>

Data Source

Source: Binance Vision S3

Coverage: UM-futures inception to present (daily granularity)

Database Schema

Table: daily_availability

Column Type Description
date DATE Trading date
symbol VARCHAR Futures symbol
available BOOLEAN Data availability flag
file_size_bytes BIGINT ZIP file size from S3
last_modified TIMESTAMP S3 upload timestamp
quote_volume_usdt DOUBLE Daily USDT trading volume
trade_count BIGINT Number of trades
open/high/low/close_price DOUBLE OHLC prices

Primary Key: (date, symbol)

Full schema: availability-database.schema.json

GitHub Releases

Pre-built database and volume rankings published to GitHub Releases:

gh release download latest --pattern "availability.duckdb.gz"
gh release download latest --pattern "volume-rankings-timeseries.parquet"

Architecture Decisions

ADR Decision
0001 Daily table pattern
0002 DuckDB storage
0003 Strict error handling
0005 AWS CLI bulk operations
0007 Volume metrics collection
0009 GitHub Actions automation
0010 Dynamic symbol discovery
0013 Volume rankings archive

Documentation

Development

pytest -m "not integration"
pytest --cov --cov-fail-under=80
ruff check src/ tests/

License

MIT

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

binance_futures_availability-1.4.0.tar.gz (398.9 kB view details)

Uploaded Source

Built Distribution

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

binance_futures_availability-1.4.0-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file binance_futures_availability-1.4.0.tar.gz.

File metadata

  • Download URL: binance_futures_availability-1.4.0.tar.gz
  • Upload date:
  • Size: 398.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"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 binance_futures_availability-1.4.0.tar.gz
Algorithm Hash digest
SHA256 7955be5f78bb98607dc56eddeff8e88f0b854fbd40196330ca528e4ff7d0d887
MD5 fd8f4daef06cded0a7bc9729cde21630
BLAKE2b-256 2f4a36d516667617fe799cc08a7c5ef7dd665dc28da0ec8b2a97d38b2a5b2acb

See more details on using hashes here.

File details

Details for the file binance_futures_availability-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: binance_futures_availability-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"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 binance_futures_availability-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4881d23b6fa4c1f5520a03bd7e49b5467228a4e7955db3048a23ca60159d98f0
MD5 778c24cb31ef7b5f55f4434f3eecb9fa
BLAKE2b-256 19dcbad74eaffd57ac3c57e818dd50b343607d61bc38b2e42de32acf9b4903c3

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