360 Secure SkillHub
360 安全技能中心

vike-hl-twaps

面向 Hyperliquid TWAP 数据的查询 Skill:通过 MCP、vike-data CLI 或 API 按币种、钱包、TWAP ID、状态和时间窗口获取状态变更行,解读买卖方向、规模与执行进度,并提示分页、时间窗口及重复累计等注意事项。

分类:数据
vikeio
vikeio
热度 37.67
最近更新 2026-12-02 09:56:21

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-hl-twaps
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-hl-twaps
description
Who is buying or selling a Hyperliquid coin slowly with TWAP orders, how big, and how far along are they? The TWAPs started, running, finished or cut short across all wallets over the last 24 hours (up to 31 days at a time), one wallet's TWAPs with no time limit, or every line of one TWAP, with its size, duration, side and how much has executed in coins and USD. Use when the user asks "who is TWAP-buying HYPE" / "any big TWAP sells on BTC today" / "is someone slowly accumulating ETH on Hyperliquid" / "how far along is this TWAP" / "what TWAPs is 0x... running".
allowed-tools
Bash(vike-data:*)

vike-hl-twaps

A TWAP is an order the venue executes in slices over minutes to hours, the usual way to buy or sell size without moving the price. hl twaps is a feed of TWAP status lines, newest first.

Call it

Use the first of these that is available:

  1. MCP: the hl_twaps tool with the optional symbol, wallet, twap_id, status, start, end, order, limit, cursor.
  2. CLI:
    vike-data hl twaps --symbol BTC --limit 100 --json                  # every BTC TWAP line of the last 24 h
    vike-data hl twaps --status activated --limit 100 --json            # TWAPs started in the last 24 h, every coin
    vike-data hl twaps --twap-id 2928158 --json                         # every line of one TWAP
    vike-data hl twaps --wallet 0x8e6c25f50d4be1e649e61b331a804d11b07a5c08 --json   # one wallet's, all time
    vike-data hl twaps --symbol HYPE --start 2026-11-25T00:00:00Z --order asc --json  # a week, oldest first
    
  3. curl: send X-API-KEY: $TOKEN (the credential is VIKE_API_KEY, else api_key or anon_token from ~/.vike/config.json; vike-core says how to get an anonymous token).
    curl -s "https://data.vike.io/v1/hyperliquid/twaps?symbol=BTC&limit=100" -H "X-API-KEY: $TOKEN"
    
    One wallet: /v1/hyperliquid/wallets/{address}/twaps (the same feed; cursors are interchangeable).

Example questions

Ask Run
"Who is TWAP-buying HYPE?" hl twaps --symbol HYPE, keep side buy, group by twap_id
"Any big TWAPs started today?" hl twaps --status activated --limit 1000, value size at the price
"How far along is TWAP 2928158?" hl twaps --twap-id 2928158
"What TWAPs has this whale run?" hl twaps --wallet 0x...

Reading

  • One row per status CHANGE, not per slice fill: activated, waitingForTrigger (a trigger price not reached yet), then finished (all of it executed), terminated or stopped (ended before the full size). A running TWAP shows only its activated line until it ends.
  • Fields: ts (Hyperliquid's block time), twap_id, wallet, symbol, side (buy | sell), status, size (the whole order, in coins), executed_size and executed_notional_usd (cumulative when the line was written), duration_minutes, reduce_only, randomize, placed_at, trigger_px, trigger_above, stop_px, error, first_seen_at (when Vike stored it; null for lines not recorded live).
  • An activated line has executed_size 0 and no USD: value it as size x the current price. A finished line carries the done USD (2026-12-02: TWAP 2928158 bought 20 BTC over 5 minutes, $1,195,415).
  • Group by twap_id and keep its newest line; it is still running when that line is activated and placed_at + duration_minutes is in the future. Net buying of a coin = the executed_notional_usd of the newest line per id, buys minus sells.
  • Most TWAPs are small (BTC, one day: 0.002 to 20 BTC). Sort by size before reporting, and say how many there were.
  • reduce_only true = closing an existing position, not a new bet.
  • Rejected placements (error) are hidden unless --status error.

Window and paging

  • Across wallets the window defaults to the 24 hours before --end (default now) and is at most 31 days; with --wallet or --twap-id there is no default window and no cap.
  • --limit up to 5000 (default 100). Page with --cursor <nextCursor> and the SAME filters, --start and --end; a cursor sent with other filters is refused.
  • To follow the feed: --order asc, pass each nextCursor back, stop on an EMPTY page (an asc page with rows always carries a cursor).

Errors

  • "without wallet= the window is at most 31 days ...": page through a longer span in 31-day --start/--end pieces, or pass --wallet.
  • "hl_twaps ... does not take [...]": a flag of another command (--min-usd does not exist here).
  • An unknown --status is refused; use the six listed above.
  • Exit code 3 or HTTP 429: the day's request limit; show the message, do not retry.

Anti-patterns

  • Don't add up executed_notional_usd over every line: each line is a running total, so the same TWAP would count two or three times.
  • Don't call a coin "accumulated" from TWAP count alone: weigh by size and check for reduce_only.

See also

  • vike-stream: TWAP lines as they are written, the hl.twaps channel of vike-data stream hl
  • vike-hl-trader-profile: who the wallet behind a big TWAP is
  • vike-hl-whale-trades: big single fills on the same coin