Skip to main content

Python client for the TraderNick data_provider service. Drop-in compatible with horatio-data-provider (same DataProviderClient API; only the import path changes).

Project description

tradernick-data-provider

Python client for the TraderNick data_provider service. Drop-in compatible with horatio-data-provider: same DataProviderClient class, same namespaces (evm, tron, btc, binance, hyperliquid, wallets, cache, jobs), same chainable builder methods, same as_pandas() / as_polars() / as_parquet() terminators. The only visible difference is the import path.

# Before
from horatio_data_provider import DataProviderClient

# After
from tradernick_data_provider import DataProviderClient

The server URL passed to the constructor is the only thing you need to change at the call site.

Install

pip install tradernick-data-provider

Usage

import asyncio
from tradernick_data_provider import DataProviderClient

async def main():
    async with DataProviderClient("http://localhost:10005") as client:
        df = await client.binance.ohlcv("BTC", "1h") \
            .time_range("2026-06-01T00:00:00Z", "2026-06-08T00:00:00Z") \
            .as_polars()
        print(df)

asyncio.run(main())

All Horatio query builders work unchanged. The server delegates to ClickHouse instead of DeFiStream, so reads stay sub-second on tables where Horatio has to pay a fresh upstream fetch.

Status

0.2.0 — Phase 1+2 read parity. Validated against horatio-data-provider on 2026-06-07:

  • Column-shape parity: 100% across binance / aave / lido / uniswap / hyperliquid / transfers.
  • Row-count + value parity: exact match on stable tables (binance.ohlcv 1m, raw_trades, lido.deposit, aave.borrows/repays, evm.native with min_amount); within ±2 rows on AAVE event tables where DeFiStream's sweep loop occasionally re-fetches windows with slightly different cuts.

What works:

  • binance.{ohlcv, raw_trades, book_depth, open_interest, funding_rate, long_short_ratios} (with with_id, add_symbol)
  • evm.aave.{deposit, withdraw, borrow, repay, flashloan, liquidation} with involving, exclude_involving, eth_market_type
  • evm.uniswap.{swap, deposit, withdraw, collect} — V3
  • evm.lido.{deposit, withdrawal_request, withdrawal_claimed, l2_deposit, l2_withdrawal_request}
  • evm.erc20.transfers, evm.native_transfers with full filter set (sender / receiver / involving / exclude_* / min_amount / max_amount)
  • tron.{native, trc20}.transfers, btc.native.transfers
  • hyperliquid.{ohlcv, trades, fills, funding, transfers, vaults, trade_history, position_history}
  • client.{wallets.list, wallets.get, wallets.upsert, wallets.delete}
  • client.{load_parquet, scan_parquet, list_snapshots, delete_snapshot, as_parquet} — server-side parquet snapshots with local_* filters
  • client.jobs.{list, get, cancel} — proxies to the ingestion job queue

Not yet exposed:

  • evm.{stader, threshold} — return empty schemas (TN doesn't ingest these networks yet)
  • hyperliquid.{sends, spot_transfers} — return empty schemas
  • client.scan_parquet only honors address-based local_* filters; label/category/entity variants are wired but no-op without wallet_labels co-mounted on the snapshot.

Compatibility

Drop-in compatible with horatio-data-provider 4.x.

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

tradernick_data_provider-0.2.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

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

tradernick_data_provider-0.2.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file tradernick_data_provider-0.2.0.tar.gz.

File metadata

File hashes

Hashes for tradernick_data_provider-0.2.0.tar.gz
Algorithm Hash digest
SHA256 68dfb788caffac84f3c4404799dd467d7add70ce1abdc6beb1835270c6fcbcea
MD5 7f0bcde5615f44646e15371f23329e16
BLAKE2b-256 dc2ce7a06ce0522fb5bca8ef3ed9abc43d21bda0b27777a3067c126fbd2d9446

See more details on using hashes here.

File details

Details for the file tradernick_data_provider-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tradernick_data_provider-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c34457e86d44be2142b1c3257898577c881715158c46fa7748d1f5a27ebb8491
MD5 7350d0e8d9bd4ddd3663ae38a612dcdc
BLAKE2b-256 fe67e44ac782bef2f6896015810171cafbbf05709fdf971881a0bec325f4aa03

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