360 Secure SkillHub
360 安全技能中心

vike-hl-archive

该 Skill 通过 MCP、CLI 或 curl 访问 Vike 数据归档,列出 Hyperliquid 每个 UTC 日可用的成交、持仓、队列和钱包 Parquet 文件,给出字段、行数、字节数与一天有效的下载链接;它不直接下载文件,并提示读取大文件及避免重复求和的注意事项。

分类:数据
vikeio
vikeio
热度 37.37
最近更新 2026-12-02 09:54:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-hl-archive
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
vike-hl-archive
description
Need every Hyperliquid fill or position of a day as a file? Daily Parquet files of every fill, every 5-minute snapshot of every open position, every position per hour, the hourly cohort matrix of every coin and every wallet's perp account per hour, one file per UTC day from 2026-05-01, plus the current open positions refreshed every 5 minutes - which days exist, the columns, rows and bytes of each file, and a 1-day download link to one file. Use when the user asks "download Hyperliquid fills for a day" / "I need historical Hyperliquid positions for a backtest" / "bulk Hyperliquid data" / "every trade on Hyperliquid on 2026-11-20" / "Parquet of Hyperliquid cohorts" / "all open positions on Hyperliquid as a file".
allowed-tools
Bash(vike-data:*)

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:

  1. MCP: the hl_archive tool, view: "datasets" (the index, default) or view: "url" with dataset and date.
  2. 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)
    
  3. curl: send X-API-KEY: $TOKEN (the credential is VIKE_API_KEY, else api_key from ~/.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

  • fills has one row per side of each trade: a trade is a maker row and a taker row with the same trade_id. For volume keep is_maker = false (or halve the sum); size_usd summed over every row doubles it.
  • positions snapshot rows of a position repeat every 5 minutes: never sum size_usd across snapshots; pick one snapshot_ts.
  • cohorts_hourly bias is a fraction from -1 to +1; its pnl axis is each hour's label as it was (no look-ahead, see vike-hl-cohort-backtest).

Errors

  • 403 "archive links are issued to signed-in users only": an anonymous token can list but not link; vike-data login or set VIKE_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-DD day 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-ahead
  • vike-hl-whale-trades, vike-hl-trader-profile: the API answers for a symbol or one wallet