Vike Io Vike Hl Cohort Trend
ASecurityWhat whales, smart money, losing wallets or shrimp did in one Hyperliquid coin over the last 24 hours, 7 days or 30 days - how each cohort's long and short notional, net position in coins and wallet count changed hour by hour, graded with each hour's own labels so nothing is judged with hindsight; plus one cohort's moves summed over every coin with its leverage on its own money, and the hourly cohort Parquet file for longer history. Use when the user asks "what did smart money do on BTC this ...
- 81 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Works with
Security analysis
100/100Pro scans all 4 files and shows the line behind each finding
npx -y skills add jiayaoqijia/cryptoskill --skill vike-io-vike-hl-cohort-trend --agent claude-codeAre you the author of Vike Io Vike Hl Cohort Trend?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jiayaoqijia-vike-io-vike-hl-cohort-trend)---
name: vike-hl-cohort-trend
description: What whales, smart money, losing wallets or shrimp did in one Hyperliquid coin over the last 24 hours, 7 days or 30 days - how each cohort's long and short notional, net position in coins and wallet count changed hour by hour, graded with each hour's own labels so nothing is judged with hindsight; plus one cohort's moves summed over every coin with its leverage on its own money, and the hourly cohort Parquet file for longer history. Use when the user asks "what did smart money do on BTC this week" / "have whales been adding to their ETH shorts" / "how did Hyperliquid whale positioning change over 30 days" / "are profitable wallets flipping long on SOL".
allowed-tools: Bash(vike-data:*)
---
# vike-hl-cohort-trend
How a cohort's position in ONE coin moved over a window. 1 request per call. For a single "right now" read use `vike-hl-cohort-positioning`; for the smart money and whale-vs-shrimp indices `vike-hl-smart-money-index`; for every coin at once `vike-hl-cohort-screener`.
## Call it
Use the first of these that is available:
1. **MCP:** `hl_cohort_metrics` with `symbol`, `axis`, `hours` and, on `axis: "pnl"`, `label_basis: "point_in_time"`; `hl_segments` with `view: "history"`; `hl_market` with `view: "symbol_metrics"`; `hl_archive`.
2. **CLI:** the commands below.
3. **curl:** the credential is `VIKE_API_KEY`, else `api_key` or `anon_token` from `~/.vike/config.json` (Windows `%USERPROFILE%\.vike\config.json`); with none, get a free anonymous token with `curl -s -X POST https://data.vike.io/v1/anon -H 'Content-Type: application/json' -d '{"source":"skill-curl"}'` and save its `token` there as `"anon_token"` (see `vike-core`).
```bash
curl -s "https://data.vike.io/v1/hl-cohorts/symbols/BTC/cohort-metrics?axis=pnl&labelBasis=point_in_time&hours=168" -H "X-API-KEY: $TOKEN"
curl -s "https://data.vike.io/v1/hl-cohorts/segments/3x_smart/history?axis=pnl&hours=168&include=leverage" -H "X-API-KEY: $TOKEN"
```
REST spells the options `labelBasis` and `openedWithin`; a cohort in a path is its slug (`3x_smart`, `2x_whale`).
## Pull
```bash
# whales and shrimp: the size ladder, each wallet's account value at that hour
vike-data hl cohort-metrics BTC --axis size --hours 168 --json > btc_size_7d.json
# smart money and rekt wallets: the realized-PnL ladder as it was at each hour
vike-data hl cohort-metrics BTC --axis pnl --label-basis point_in_time --hours 168 --json > btc_pnl_7d.json
```
`--hours 24`, `168` or `720` for a day, a week or 30 days (at most 8760), or `--start` / `--end` (ISO-8601 UTC) for a fixed window. One call returns every rung of every hour, newest hour first, about 13 rows an hour: a week is about 1 MB, 30 days about 4 MB. **Write it to a file and summarise it with code; never print it into the conversation.**
Each row: `ts` (hour, UTC), `cohort`, `n_wallets` (wallets of the cohort holding the coin that hour), `position_count`, `position_count_long`, `total_position_value` and `total_position_value_long` (USD notional), `total_position_size` and `total_position_size_long` (in coins), `total_unrealized_pnl`, `bias` = (long - short) / (long + short), a fraction from -1 to +1.
## Summarise: the first hour against the last, per group
```python
import json, sys
rows = json.load(open(sys.argv[1]))["metrics"]
GROUPS = {"whales": {"4x whale", "3x whale", "2x whale", "whale"}, "shrimp": {"2x shrimp", "shrimp"},
"smart": {"3x smart", "2x smart", "smart"}, "rekt": {"rekt", "2x rekt", "3x rekt"}}
hours = sorted({r["ts"] for r in rows})
def read(ts, members):
sel = [r for r in rows if r["ts"] == ts and r["cohort"] in members]
V = sum(r["total_position_value"] for r in sel); L = sum(r["total_position_value_long"] for r in sel)
sizes = [r["total_position_size"] for r in sel]
net = None if None in sizes else sum(2 * r["total_position_size_long"] - r["total_position_size"] for r in sel)
return {"long_usd": round(L), "short_usd": round(V - L), "bias": round((2 * L - V) / V, 3) if V else None,
"net_size": net and round(net, 2), "wallets": sum(r["n_wallets"] for r in sel)}
for name, members in GROUPS.items():
first, last = read(hours[0], members), read(hours[-1], members)
if first["wallets"] or last["wallets"]:
print(name, hours[0], first, "->", hours[-1], last)
```
The groups are the ones the indices use: whales = account value $1M and up, shrimp = under $10k, smart = the top 10 % of wallets by cumulative realized PnL, rekt = the bottom 20 % (`vike-hl-cohort-explorer` has every rung's bounds). For "over the last day" inside a week's file, compare `hours[-1]` with `hours[-25]`.
## Reading
- **`net_size` (coins, long minus short) is the price-free answer to "did they add or cut".** Notional moves with the price even when nobody trades: say "net short grew from 3,961 to 5,313 BTC", not only "short notional rose".
- **A cohort's holdings change two ways**: its wallets trade, and wallets move between rungs (an account crossing $1M joins `whale`, a wallet's PnL percentile moves). Read `n_wallets` beside every change; a jump in wallets with flat size per wallet is membership, not trading.
- **One rung can be the whole group**: on 2026-12-02 BTC's `3x smart` was about 770 wallets holding about $1.0B, `smart` about 2,400 wallets holding $45M. Name the rung that moved.
- Several rungs as one group: sum the notional, never average the biases.
- `freshness` (on a window that reaches now): `stale: true` means the newest hour is late (`behind_hours`); do not call it "now". The hour in progress is never returned, so the newest row is about an hour old.
- `unknown` on `size` = positions in hours rebuilt from fills, whose account value is unknown: keep them in a coin's total, out of the groups. `unknown` on `pnl` = wallets with fewer than 10 closed trades.
## Which labels see the future
| Request | Look-ahead? |
|---|---|
| `--axis size`, `--axis tier` | No: account value or position size at that hour |
| `--axis pnl --label-basis point_in_time` | No: each hour's own grading. **Use it for "what did smart money do".** Refuses `--opened-within` |
| `--axis pnl` without it (default `current`) | **Yes**: today's grading on every past hour, i.e. "what did the wallets that are smart TODAY do". Say so if you use it |
| `--axis pnl_abs` | **Yes** always: today's dollar bands |
Point-in-time `pnl` labels are daily before 2026-08-06 and hourly after (`label_computed` says so). A window reaching April 2026 or about 365 hours between May and 2026-08-06 08:00 comes back with `position_count*`, `total_unrealized_pnl` and `total_position_size*` null (named in `unavailable_fields`): use the notional and `bias` there, never read a null as 0. Every axis starts at 2026-04-07 (`data_from`).
`--opened-within 24h|7d|30d` (not with `point_in_time`) keeps only positions opened within that window before EACH hour: how much of the lean is new.
## One cohort, every coin summed
```bash
vike-data hl segments --view history --axis size --cohort whale --hours 168 --include leverage --json
vike-data hl segments --view history --axis pnl --cohort "3x smart" --hours 720 --json > smart3_30d.json
```
`--axis` `size` or `pnl` (required), labels as of each hour. Per hour, newest first: `long_usd`, `short_usd`, `bias`, `position_count` (positions, not wallets). `--include leverage` adds `perp_bias` = (long - short) / equity and `equity_exposure` = (long + short) / equity, the cohort's leverage on its own money, with `equity_covered_share` (null before 2026-08-11, never 0). `--limit` at most 5000 rows; while `has_more` is true, page back with `--end` = the oldest `ts` minus 1 second.
## The hour in progress
```bash
vike-data hl market --view symbol_metrics --symbol BTC --axis size --cohort whale --limit 24 --json
```
One rung per call (or no `--axis`/`--cohort` for all wallets summed). The newest row has `provisional: true`: the hour in progress at its latest 5-minute snapshot; drop it before comparing settled hours. `--limit 24` returns 24 settled hours plus that row. A `pnl` slice here is today's grading and `--label-basis point_in_time` is refused: use `hl cohort-metrics` for it. All wallets summed: `bias` is always about 0 (every long has a short on the other side) and `total_position_value` is long plus short, twice the one-sided open interest; the share of positions that are long, `position_count_long / position_count`, is what leans there.
## Longer history: the hourly cohort Parquet file
```bash
vike-data hl archive --json # published days; schema.cohorts_hourly
vike-data hl archive --view url --dataset cohorts_hourly --date 2026-11-30 --json # a download link for one day
```
One file per UTC day from 2026-05-01, about 300,000 rows and 12 MB: every coin (HIP-3 included) x `axis` (`size`, `pnl` as of each hour, `pnl_unrealized`) x `cohort` x `hour`, the route's columns plus `total_position_value_short`. On `pnl` and `pnl_unrealized` the `position_count*`, `total_unrealized_pnl` and `total_position_size*` columns are null. A day appears once it is complete, early the next UTC morning, so the newest file is usually yesterday's or the day before. The link is valid for 1 day (`expires_at`) and needs no key: download it yourself, read the local copy, do not share the link. Links are issued to signed-in accounts only, and which days an account can get depends on it: on a refusal show the server's message and stop.
## Errors
- "opened_within=7d is not applied with axis=pnl with label_basis=point_in_time ...": drop `--opened-within`, or ask the question on `--axis size`.
- "this endpoint cannot serve labelBasis=point_in_time ..." (`symbol_metrics`): use `hl cohort-metrics --axis pnl --label-basis point_in_time`.
- "cohort 'smart' is on the 'pnl' ladder, not 'size'": add `--axis pnl` (the default axis is `size`).
- "no cohorts_hourly file for <date>; published: ...": pick a day from that list.
- An empty `metrics` list: nothing in the window, or a misspelled symbol (a HIP-3 market is `dex:TICKER`, e.g. `xyz:NVDA`; check with `vike-data search`).
- Exit code 3 (CLI) or HTTP 429 (curl): the daily limit; show the server's message and stop, do not retry.
## Answer template
> BTC on Hyperliquid, `<first ts>` to `<last ts>` UTC, each hour's own labels: smart wallets (top 10 % by realized PnL, `<n>` holding BTC) went from bias `<b0>` to `<b1>`, net `<s0>` to `<s1>` BTC; whales from `<b0>` to `<b1>`, net `<s0>` to `<s1>` BTC. Notional-weighted, Hyperliquid only; a cohort's holdings also move as wallets change rungs.
## Anti-patterns
- Don't call a week of default `pnl` labels "what smart money did" without saying they are today's labels.
- Don't read a change in notional as buying or selling without `net_size`: the price moved it.
- Don't compare the `provisional` row with settled hours, or a `latest` snapshot with an hourly row.
- Don't print a multi-day pull into the conversation.
## Pairs well with
- `vike-hl-cohort-positioning` (now), `vike-hl-smart-money-index` (SMI and WSI over time), `vike-hl-cohort-screener` (every coin), `vike-hl-cohort-backtest` (did it lead price), `vike-candles` (the price over the same window)
Files in this skill
- LICENSE
- SKILL.md
- SOURCE.md
- TRUST.auto.yaml
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.