vike-hl-archive
hl archive lists the files and resolves a link to one of them; it never downloads. The link is for a signed-in account (an API key or vike-data login); listing works on any credential.
Call it
Use the first of these that is available:
- MCP: the
hl_archivetool,view: "datasets"(the index, default) orview: "url"withdatasetanddate. - CLI:
vike-data hl archive --json # days, rows and bytes per file, columns, samples vike-data hl archive --view url --dataset cohorts_hourly --date 2026-11-01 --json # a link to one file, valid 1 day vike-data hl archive --view url --dataset positions --date latest --json # the current open positions (5-minute file) - curl: send
X-API-KEY: $TOKEN(the credential isVIKE_API_KEY, elseapi_keyfrom~/.vike/config.json;vike-core).curl -s "https://data.vike.io/v1/hyperliquid/archive/datasets" -H "X-API-KEY: $TOKEN" curl -s "https://data.vike.io/v1/hyperliquid/archive/url?dataset=fills&date=2026-11-20" -H "X-API-KEY: $TOKEN"
Pick the file
| Dataset | One row is | Size of one day (2026-11-30) | From |
|---|---|---|---|
fills |
one fill: fill_ts, wallet, asset, side, size_token, price, size_usd, fee, fee_token, is_maker, order_id, trade_id, crossed, closed_pnl, dex_name, start_position |
13.3M rows, 418 MB | 2026-05-01 |
positions |
one open position at one 5-minute snapshot (288 a day): snapshot_ts, wallet, asset, direction, size_usd, entry_price, mark_price, liquidation_price, unrealized_pnl, leverage, margin_used, size_cohort, pnl_cohort, account_value, ... |
111M rows, 1.5 GB | 2026-05-08 |
positions_hourly |
one position as last seen in each hour | 9.4M rows, 325 MB | 2026-05-01 |
cohorts_hourly |
one asset x ladder (axis) x cohort per hour: n_wallets, position_count, long/short notional, bias: the matrix behind hl cohort-metrics |
300k rows, 12.5 MB | 2026-05-01 |
wallets_hourly |
one wallet's perp account per hour: account_value, margin_used, total_unrealized_pnl, cash_balance_usd, num_positions, size_cohort, spot_usdc, abstraction |
3.1M rows, 97 MB | 2026-05-01 |
date=latest exists for positions only: every open position now, refreshed about every 5 minutes (latest.positions in the index: snapshot_ts, rows, bytes, assets, note).
A question about a few hours or one wallet does not need a file: one wallet's fills are hl wallet-activity <a> --view fills, the biggest positions of one coin now hl market --view positions --symbol BTC --sort size, a coin's cohort matrix hl cohort-metrics BTC.
Reading the index
dates newest first, each date with streams per dataset (rows, bytes; positions also snapshots); schema gives every dataset's columns with name, type and meaning (read it before writing a query); samples_base is a public folder of small samples (https://data.vike.io/archive/hl-samples/, no key); url_endpoint is where a link is asked for. A day appears once it is complete, the early UTC morning after: on 2026-12-02 the newest day was 2026-11-30.
Fetch (outside this skill's tool grant; hand the user the command)
The url answer: url, expires_at, expires_in (86400: valid 1 day), dataset, date, rows, bytes. The link needs no API key: treat it as a secret and don't paste it anywhere shared.
curl -C - -o hl-fills-2026-11-20.parquet "<url>"
Check bytes and tell the user before fetching a positions day (1.5 GB). Download the file whole and read the local copy with DuckDB, polars or pyarrow; pointing a reader at the URL turns one file into thousands of range requests.
Reading the files
fillshas one row per side of each trade: a trade is a maker row and a taker row with the sametrade_id. For volume keepis_maker = false(or halve the sum);size_usdsummed over every row doubles it.positionssnapshot rows of a position repeat every 5 minutes: never sumsize_usdacross snapshots; pick onesnapshot_ts.cohorts_hourlybiasis a fraction from -1 to +1; itspnlaxis is each hour's label as it was (no look-ahead, seevike-hl-cohort-backtest).
Errors
- 403 "archive links are issued to signed-in users only": an anonymous token can list but not link;
vike-data loginor setVIKE_API_KEY. - Another 403 about recent dates or dates a month: the account's file access does not cover this date; show the message as it is.
- 400 "no fills file for 2026-12-01; published: 2026-05-01 to 2026-11-30 (214 days)": pick a day the index lists.
- 400 "date=latest exists for positions only": use a
YYYY-MM-DDday for the other datasets. - 503: the index is not published or not readable right now; try again later, it is not an empty archive.
- Exit code 3 or HTTP 429: the day's request limit; show the message, do not retry.
See also
vike-pm-l2-archive: the Polymarket twin (order-book events and trades as Parquet)vike-hl-cohort-backtest: testing cohort positioning against price without look-aheadvike-hl-whale-trades,vike-hl-trader-profile: the API answers for a symbol or one wallet
