Skip to main content

xret-data

Trusted market data infrastructure for Xret.

Acquire, validate, and store crypto market data with explicit I/O boundaries and fail-closed quality guarantees.

Install

uv add xret-data

Quick start

from xret.data import MarketData

md = MarketData()
bars = md.bars(
    exchange="binance", symbol="BTC/USDT",
    market="perpetual", settle="USDT", timeframe="1h",
)

result = bars.sync("2024-01-01", "2024-06-01")
result.require_complete()

df = bars.scan("2024-01-01", "2024-06-01").collect()

Key contracts

  • fetch — remote-only observation, never touches local state
  • sync — reconcile missing coverage, commit validated Parquet
  • scan — strict local read, raises CoverageError on gaps
  • scan_partial — local read with structured gap reporting

Links

Metadata

Release files for xret-data 0.2.1

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

Source distribution (sdist)

Source distribution for xret-data 0.2.1
File Size Uploaded
xret_data-0.2.1.tar.gz 62.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xret-data 0.2.1
File Interpreter ABI Platform
xret_data-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 138.8 kB

Release files / xret_data-0.2.1.tar.gz

Download URL xret_data-0.2.1.tar.gz
Size 62.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e663fbde0bbf6199ed38d87aa7c945e7e41aca46bb7e4b8d9d93bf7e97ab5e0b
BLAKE2b-256 checksum
How to use checksums
ff791bd171191b0ae339244618256ca9184d9736059f3d5552e0261669c5f99d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / xret_data-0.2.1-py3-none-any.whl

Download URL xret_data-0.2.1-py3-none-any.whl
Size 76.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b35b23664cf6c73fa1b3d4139c1ff51c8b79d5a57884e6b34b81526bbd302639
BLAKE2b-256 checksum
How to use checksums
b8622f1e6faf10121ea6c1c96b972641e2a76bf974edeee722ff93ac40fc1b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.1 This release

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