vike-io

vike-hl-cohort-screener

Rank every Hyperliquid coin by what a wallet cohort is doing in it - where whales or the most profitable wallets are most long or most short right now, the smart money index and whale-vs-shrimp index of every coin from one call, where they opened new positions in the last 24 hours, 7 or 30 days, and which coins they added to or cut over days; HIP-3 stocks, indices and commodities included. Use when the user asks "which coins are whales most short on Hyperliquid" / "where is smart money most long" / "rank coins by smart money index" / "what are whales opening today" / "which coins did smart money turn bearish on this week".

vike-io 2 Updated 2d ago
GitHub

Install

npx skillscat add vike-io/vike-data-cli/vike-hl-cohort-screener

Install via the SkillsCat registry.

SKILL.md

vike-hl-cohort-screener

One board of every coin x every cohort at the latest 5-minute snapshot, ranked by code. 1 request per call; the board is about 1.8 MB, so write it to a file and rank it with code; never print it into the conversation. One coin in depth: vike-hl-cohort-positioning, vike-hl-smart-money-index, vike-hl-cohort-trend.

Call it

Use the first of these that is available:

  1. MCP: the hl_segments tool with view: "heatmap", axis (size, pnl or pnl_abs) and the optional opened_within (24h, 7d, 30d, all).
  2. CLI:
    vike-data hl segments --view heatmap --axis pnl --json > board_pnl.json                     # smart money vs rekt
    vike-data hl segments --view heatmap --axis size --json > board_size.json                   # whales vs shrimp
    vike-data hl segments --view heatmap --axis size --opened-within 24h --json > board_new.json # only positions opened in the last 24 h
  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).
    curl -s "https://data.vike.io/v1/hl-cohorts/heatmap?axis=pnl&openedWithin=all" -H "X-API-KEY: $TOKEN" > board_pnl.json

The board

Top level: axis, opened_within, snapshot_ts, totals (n_symbols, n_wallets holding any position, notional) and heatmap, one entry per coin with open interest (about 360, half of them HIP-3 markets such as xyz:NVDA), in no order you should rely on. Each entry: symbol, total_value, total_long_value, total_short_value (USD), count, count_long, count_short (positions), n_wallets, bias, and segments, one per cohort present (empty cells are left out): cohort, rank, total_value, total_long_value, total_short_value, count, n_wallets, bias, share_of_symbol.

A coin's own bias is always near 0 when every position counts (each long has a short on the other side); rank by a cohort's bias, never by the coin's.

Rank it

import json, sys
d = json.load(open(sys.argv[1]))                       # a `hl segments --view heatmap` answer
pnl = d["axis"] == "pnl"
TOP = {"3x smart", "2x smart", "smart"} if pnl else {"4x whale", "3x whale", "2x whale", "whale"}
BOTTOM = {"rekt", "2x rekt", "3x rekt"} if pnl else {"2x shrimp", "shrimp"}
MIN_USD, MIN_WALLETS = 1_000_000, 10                    # whales with --opened-within: try 3 wallets
def group(segs, members):
    sel = [s for s in segs if s["cohort"] in members]
    return (sum(s["total_value"] for s in sel), sum(s["total_long_value"] for s in sel), sum(s["n_wallets"] for s in sel))
rows = []
for h in d["heatmap"]:
    tv, tl, tn = group(h["segments"], TOP)
    bv, bl, _ = group(h["segments"], BOTTOM)
    if tv < MIN_USD or tn < MIN_WALLETS:               # thin groups flip on one wallet
        continue
    index = round(tl / tv - bl / bv, 3) if bv else None  # smi on the pnl board, wsi on the size board
    rows.append((h["symbol"], round((2 * tl - tv) / tv, 3), index, round(tv / 1e6, 1), tn))
for r in sorted(rows, key=lambda r: r[1])[:15]:        # most short first; reverse=True for most long
    print(r)                                           # symbol, group bias, smi|wsi, group notional $M, wallets

The index column is the same SMI (pnl board) or WSI (size board) that hl market --view indices reports as latest: computed this way for BTC and ETH it matched within 0.001. The group bias column is smart_bias / whale_bias. Sort on r[2] to rank by the index instead.

Reading

  • Floors first. Without MIN_USD and MIN_WALLETS the top of every list is a thin market where one wallet is the whole group. Whales are few: about 300 whale wallets hold BTC, and in about half the coins the whale group is under 20 wallets (2026-11-30). State the wallets and notional with every name you rank.
  • --opened-within 24h|7d|30d keeps only positions opened in that window: "what are whales opening today". The groups get much thinner there (whale groups of 1 to 10 wallets): lower MIN_WALLETS and say how few they are.
  • The pnl board grades wallets by TODAY's realized PnL, which is right for a "now" ranking.

Change over time, across coins

The board is one instant. For "which coins did smart money turn on this week":

  1. A shortlist (preferred): take the 10-20 biggest coins from the board and pull each one's history, one request per coin, with point-in-time labels:
    vike-data hl cohort-metrics SOL --axis pnl --label-basis point_in_time --hours 168 --json > sol_pnl_7d.json
    then compare the first and the last hour per group as in vike-hl-cohort-trend.
  2. Every coin, from the Parquet archive: one cohorts_hourly file per UTC day from 2026-05-01 holds every coin x size / pnl (as of each hour) / pnl_unrealized x cohort x hour.
    vike-data hl archive --json                                                       # published days
    vike-data hl archive --view url --dataset cohorts_hourly --date 2026-11-30 --json  # one day's link, valid 1 day
    Download each link yourself (no key needed; do not share it) and compare the first hour with the last:
    import sys
    import polars as pl
    SMART = ["3x smart", "2x smart", "smart"]                   # or the whale rungs with axis "size"
    df = pl.concat([pl.read_parquet(f) for f in sys.argv[1:]])  # one or more cohorts_hourly files
    g = (df.filter((pl.col("axis") == "pnl") & pl.col("cohort").is_in(SMART))
           .group_by("asset", "hour")
           .agg(pl.col("total_position_value").sum().alias("v"), pl.col("total_position_value_long").sum().alias("l"),
                pl.col("n_wallets").sum().alias("wallets"))
           .with_columns(((2 * pl.col("l") - pl.col("v")) / pl.col("v")).alias("bias")))
    first, last = g["hour"].min(), g["hour"].max()
    out = (g.filter(pl.col("hour") == first).join(g.filter(pl.col("hour") == last), on="asset", suffix="_end")
            .filter(pl.col("v_end") >= 1_000_000)
            .with_columns((pl.col("bias_end") - pl.col("bias")).alias("bias_change"))
            .sort("bias_change"))
    print(first, "->", last)
    print(out.select("asset", "bias", "bias_end", "bias_change", "v_end", "wallets_end").head(15))
    A day appears once complete, early the next UTC morning. 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, then use the shortlist instead.

Errors

  • --axis tier (or trade_size) is refused on the board: a wallet straddles position-size tiers.
  • "no cohorts_hourly file for ; published: ...": pick a day from that list.
  • Exit code 3 (CLI) or HTTP 429 (curl): the daily limit; show the server's message and stop, do not retry.

Answer template

Hyperliquid, <snapshot_ts> UTC, coins where the smart wallets (top 10 % by realized PnL) hold at least $1M across 10+ wallets: most short <SYM> (bias <b>, SMI <i>, $<v>M, <n> wallets), ...; most long <SYM> (...). Notional-weighted, today's PnL grading, Hyperliquid positions only.

Anti-patterns

  • Don't rank without a notional and wallet floor, and don't drop the wallet count from the answer.
  • Don't rank coins by the coin's own bias: it is about 0 by construction.
  • Don't print the board, or a day's Parquet file, into the conversation.
  • Don't present a ranking as a trade list.

Pairs well with

  • vike-hl-smart-money-index and vike-hl-cohort-trend (one coin from the list in depth), vike-hl-cohort-positioning (the biggest positions in it), vike-hl-asset-briefing (funding, open interest and liquidations beside it)