Help / Developers
Bulk downloads as Parquet
Careful:Downloads are paused until each data source’s licence allows us to hand out whole histories. The examples below show how they’ll work; for now they answer 403.
For research and machine learning: whole histories as Apache Parquet files, ready for pandas, Polars, DuckDB or Spark. Parquet is compressed and typed, so a million trades is a small file that loads in a moment.
How#
Add format=parquet to /v1/bars or /v1/trades. Each download counts as 10 requests (see limits).
# A day of Bitcoin trades
curl -o btc-trades.parquet "https://<server>/v1/trades?instrumentId=hyperliquid:BTC&from=1791172800000&to=1791259200000&limit=1000000&format=parquet"
# Five thousand hourly bars
curl -o btc-1h.parquet "https://<server>/v1/bars?instrumentId=hyperliquid:BTC&resolution=1h&limit=5000&format=parquet"# Python
import pandas as pd
trades = pd.read_parquet("btc-trades.parquet")
print(trades.head())
# Or straight from SQL with DuckDB
# SELECT avg(price) FROM 'btc-trades.parquet';What you can download#
- Trades: up to a week per file and 1,000,000 trades, from the last 30 days. For longer, download a week at a time.
- Bars: up to 5,000 per file; page back with
before(the open time of the oldest bar you have). - Stocks’ bars are split-adjusted unless you add
adjust=none(as traded) oradjust=all(for dividends too).
Note:In the app, the same data downloads from the chart (see Your data). Data comes from the exchanges and vendors named in the app, under their terms; check those before you redistribute it.
TradingView and Pine Script are trademarks of TradingView, Inc. OpenTapefolio is not affiliated with or endorsed by TradingView.