vike-stream
vike-data stream - Hyperliquid fills, liquidations, positions (with leverage and liquidation price), top-10 positions per coin, closed trades, liquidation risk, order walls, closed candles, TWAPs, ledger, leverage changes and funding; HL cohort flow, indices, cohort bias and cohort leverage; on-chain transfers on eth, bsc, base and hyperevm; Polymarket trades, wallet position changes, resolutions, price moves and new markets - printed as NDJSON, resumed by cursor after any drop. Use when the user wants to "watch", "tail", "follow live", "stream" or "be notified as it happens" rather than query history.Latest: v1.0.0
- Added vike-stream 1.0.0 for live Hyperliquid, cohort, on-chain, and Polymarket events as NDJSON.
- Added multi-channel subscriptions, server-validated filters, and cursor-based resume after disconnects.
- Added stream info, filter validation, stored-event queries, and connection-history commands.
vike-stream
vike-data stream <hl|hl-cohorts|onchain|polymarket> --channel <channel...> [--filter key=value ...] [--cursor <cursor>]
Connects to wss://stream.vike.io/v1/stream/<path> with the CLI's credential (an API key in the X-API-KEY header, or
the vike-data login browser sign-in as a bearer token, refreshed before each reconnect), subscribes once per
--channel, and prints one JSON object per line on stdout: every event frame and every gap frame, exactly as the
server sent them. Status lines (subscribed, reconnecting, errors) go to stderr. It runs until Ctrl-C.
| Path | Channels |
|---|---|
hl | hl.fills, hl.liquidations, hl.positions, hl.liq_risk, hl.order_walls, hl.candles, hl.twaps, hl.ledger, hl.leverage, hl.funding, hl.top_positions, hl.closed_trades |
hl-cohorts | hl.cohort_flow, hl.indices, hl.cohort_bias, hl.cohort_leverage |
onchain | chain.transfers |
polymarket | pm.trades, pm.positions, pm.resolutions, pm.price_moves, pm.new_markets |
The server decides what each path serves: vike-data stream info prints the current channels and filter keys, and a
channel the path does not serve is refused with unknown_channel and the list. The CLI has no channel list of its own.
hl.candles is the Hyperliquid candle stream: closed bars, filtered by coin, interval (1m 5m 15m 30m 1h 4h 1d),
market (perp or spot) and dex (HL or a HIP-3 dex). The old wss://data.vike.io/v1/stream is closed (410).
hl.positions: the fills that change a big position.data.leverageanddata.liquidation_pxare the wallet's own at the last position capture, i.e. BEFORE that fill (nullfor anopen; aliquidation_pxof 0 is "none"),labels.tagsits trader tags. Filtersmin_leverage(a number) andtag(a list) exist on this channel only.hl.top_positions: per coin of the top 50, the position thatentered,leftormovedwithin the top 10 (filtereventtakes ONE of those,directionone oflong/short). The first capture sends all 10 of every coin asentered.hl.order_walls: perp orders of $1M or more thatappearedin ordisappearedfrom the 5-minute order snapshots.data.kindisresting(a limit order) ortrigger(a stop or take-profit not yet fired, withtrigger_typesl/tp/trailingandtrigger_px);dexisHLor the HIP-3 dex,sourcethe snapshot feed. Adisappearedsays what happened:outcome(filled,partially_filled,canceled,unknown) andfilled_usd; it waits for the order's fills, up to ~12 minutes after the snapshot that found the order gone. Filtersside,eventandkindtake one value each. The same walls after the fact, with a wallet's pulled share:vike-data hl orders --view wallsand--view order_stats.hl.closed_trades: a finished round trip (entry and exit price,realized_pnl,duration_seconds), in batches every 30 minutes; unfiltered up to ~32,000 an hour (measured 2026-11-02): filter bywalletormin_usd.hl.cohort_leverage(hl-cohorts): once an hour per cohort of oneaxis,perp_biasandequity_exposureagainst account value; no wallet or coin, filtersaxisandcohortonly.pm.positions: eachpm.tradesfill again as its effect on the wallet's position,data.action(open,increase,reduce,close,flip),shares_before,shares,avg_price. Filterswallet,market,min_usd(the trade's size),action; unfiltered 60,000 to 150,000 an hour (measured 2026-11-02): filter bywalletormarket.
Examples
# Hyperliquid BTC and ETH fills of $100k or more, by smart wallets
vike-data stream hl --channel hl.fills --filter coin=BTC,ETH --filter min_usd=100000 --filter "pnl_cohort=3x smart,2x smart"
# Live 1-minute and 1-hour BTC and ETH perp candles (closed bars)
vike-data stream hl --channel hl.candles --filter coin=BTC,ETH --filter interval=1m,1h --filter market=perp
# Every liquidation and every fill of one wallet, on one connection
vike-data stream hl --channel hl.liquidations hl.fills --filter wallet=0x1111111111111111111111111111111111111111
# USDC transfers on base of 1M USDC or more (min_amount is in tokens; min_usd would drop the unpriced events)
vike-data stream onchain --channel chain.transfers --filter chain=base --filter token=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 --filter min_amount=1000000
# Position changes at 20x or more, BTC and ETH (the wallet's leverage and liquidation price before the fill are in data)
vike-data stream hl --channel hl.positions --filter coin=BTC,ETH --filter min_leverage=20
# BTC and ETH stops and take-profits of $1M+ that left the book, with whether they filled
vike-data stream hl --channel hl.order_walls --filter coin=BTC,ETH --filter kind=trigger --filter event=disappeared
# Every round trip one wallet closes (a batch every 30 minutes)
vike-data stream hl --channel hl.closed_trades --filter wallet=0x1111111111111111111111111111111111111111
# One Polymarket wallet opening or closing a position
vike-data stream polymarket --channel pm.positions --filter wallet=0x1111111111111111111111111111111111111111 --filter action=open,close
# Keep only the events, with jq
vike-data stream polymarket --channel pm.trades --filter min_usd=10000 | jq -c 'select(.type == "event") | .event'
--filter applies to every --channel of the command; a key the channel does not take is refused by the server
with the key's name. List keys (wallet, coin, token, market, chain, cohorts, ...) take comma-separated
values and repeat; side, direction, event, axis, move, role, kind take one value; true / false is sent as a yes/no (contract=false); min_usd, min_amount, min_move,
min_leverage take a number. Channels in one command must all take every key you pass (min_leverage and tag are hl.positions only). Channel fields and filter keys: https://vike.io/docs/data/reference/stream-channels
Without a socket
These are MCP calls: they open no connection, so they never replace one.
vike-data stream info --json # every path, channel, filter key, limit and close code
vike-data stream check hl.fills --filter coin=BTC --filter min_usd=50000 # the server's own validator; exit 1 if refused
vike-data stream events hl.liquidations --filter coin=BTC --since-ms 1793178870000 --json # stored events (3 days), paged by --cursor
vike-data stream connections --hours 24 --json # your recent connections: who closed whom (4410), events sent
Run stream check before a long-running stream: it shows the filter exactly as the server will apply it (with
the hl.fills default min_usd of 1000 added) or the server's error naming the bad key.
Reading the output
- Keep the frame's
cursor(the top-level one, notevent.cursor) of the last line you handled.--cursor <it>on the next run resumes from there, up to 3 days back; older iscursor_expiredand the stream continues from now. - The CLI resumes by itself after any drop (restart, network, slow reader) from the last cursor of each subscription.
Delivery is at least once: drop a repeated
event.event_id. - A
gapframe (reason: channel_idle) means the channel was not running betweenfromandto(nobody was subscribed). It does not mean nothing happened; read that window from the REST endpoints or thehl/polymarketcommands. For what a socket missed while the channel was running,vike-data stream events <channel> --cursor <c>. hl.fillswithoutmin_usdgets a $1,000 floor;min_usd=0is every fill (hundreds per second).chain.transfersunfiltered is a firehose; transfers are priced after they are streamed, somin_usdon it drops almost every event: filter bywallet,token(withmin_amount),entity,wallet_typeorcontract=false.
One connection per key
On each path, one API key (or one browser sign-in) holds one connection; an account holds at most 3. A second program on the same key and
path takes over, and the first exits with replaced (4410) and does not reconnect (two programs reconnecting would
take the connection from each other forever). Give each program its own key (VIKE_API_KEY=... vike-data stream ...).
vike-data stream connections shows which of your connections closed which.
Exit 1 also on HTTP 401 / 4401 (the key) and on a refused subscription (bad_subscription, unknown_channel).
Anti-patterns
- Don't run two
vike-data streamprocesses on the same key and path: they replace each other. - Don't treat silence as "nothing happened" in the first minutes: an idle channel starts on demand (up to ~12 minutes
for
hl.indices,hl.liq_riskandhl.top_positions, up to 30 forhl.closed_trades;pm.positionstakes one to three minutes likepm.trades;hl.cohort_leveragesends its newest hour at once, then one an hour). - Don't use the stream for history: it keeps 3 days. Use the query commands.
Pairs well with
vike-alerts-setup: a stored rule that notifies by webhook without a running process.vike-hl-top-traders: pick the wallets to put in awalletfilter.- Playbooks with a live section:
vike-hl-liquidation-radar(hl.liq_risk,hl.liquidations,hl.positions),vike-follow-the-money(chain.transfers),vike-hl-cohort-positioning(hl.cohort_bias,hl.indices,hl.cohort_leverage,hl.top_positions),vike-hl-trader-profile(hl.closed_trades),vike-pm-market-diligenceandvike-polymarket-trader(pm.positions).
