360 Secure SkillHub
360 安全技能中心

vike-hl-leverage-shifts

该 Skill 通过 Vike 数据接口(MCP、CLI 或 curl)查询 Hyperliquid 连续持仓快照中杠杆上调、下调或 cross/isolated 切换的记录,可按币种、钱包、杠杆下限和时间窗口过滤,并返回新旧杠杆、保证金模式、仓位方向、规模及开仓价。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-hl-leverage-shifts
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-hl-leverage-shifts
description
Who just raised or cut leverage on Hyperliquid, or switched a position between cross and isolated margin? Each open position whose leverage setting changed between two position snapshots, across all wallets over the last 24 hours (up to 31 days at a time), on one coin, or for one wallet, with the old and new leverage and margin mode, side, size and entry price. Use when the user asks "who is levering up on BTC" / "anyone going 40x on ETH" / "are traders cutting leverage on HYPE" / "did this whale change its leverage" / "who switched to isolated margin".
allowed-tools
Bash(vike-data:*)

vike-hl-leverage-shifts

hl leverage-changes compares consecutive position snapshots (about 12 minutes apart) and returns each position whose leverage setting or margin mode differs, newest first.

Call it

Use the first of these that is available:

  1. MCP: the hl_leverage_changes tool with the optional wallet, symbol, change, min_leverage, start, end, order, limit, cursor.
  2. CLI:
    vike-data hl leverage-changes --change up --min-leverage 20 --limit 100 --json   # positions taken to 20x or more, last 24 h
    vike-data hl leverage-changes --symbol BTC --change down --json                  # BTC positions de-levered
    vike-data hl leverage-changes --change mode --json                               # cross <-> isolated switches
    vike-data hl leverage-changes --wallet 0xfba1abab671b67565759adc3f077cadef16905ff --json   # one wallet, all time
    
  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/leverage-changes?change=up&min_leverage=20" -H "X-API-KEY: $TOKEN"
    

Example questions

Ask Run
"Who is levering up on BTC?" --symbol BTC --change up, sort by size_usd
"Anyone at 40x on ETH?" --symbol ETH --change up --min-leverage 40
"Are traders de-risking HYPE?" --symbol HYPE --change down beside --change up, by count and size
"Did 0x... change its leverage?" --wallet 0x...

Reading

Each row: ts (the later snapshot's slot) and prev_ts, captured_at and prev_captured_at (when the two snapshots were taken), wallet, symbol, dex_name, change (up, down or mode), leverage_prev -> leverage, mode_prev -> mode (cross | isolated), position_side_prev -> position_side, size_usd_prev -> size_usd, entry_price_prev -> entry_price.

  • There is no size floor: most rows are small (2026-12-02: of the newest eight raises to 20x or more, five were BTC positions of $11 to $82). Filter and sort by size_usd yourself before naming a trend.
  • The time is when we saw it, not when the wallet changed the setting: snapshots are about 12 minutes apart, so changes arrive in batches.
  • A leverage setting is not the position size. Compare size_usd_prev with size_usd: a higher setting on the same size locks less margin in the position (on isolated margin its liquidation price moves closer to entry); a bigger size is a new bet.
  • position_side_prev different from position_side = the position flipped between the snapshots.
  • --change mode keeps only margin-mode switches; --min-leverage is a floor on the NEW leverage.

Window and paging

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

Errors

  • "without wallet= the window is at most 31 days ...": split the span into 31-day --start/--end pieces.
  • An unknown --change is refused: up, down or mode.
  • Exit code 3 or HTTP 429: the day's request limit; show the message, do not retry.

See also

  • vike-hl-liquidation-radar: where those leveraged positions would be liquidated
  • vike-hl-cohort-positioning: the biggest open positions of a coin with their leverage (hl market --view positions --symbol BTC --sort size)
  • vike-stream: changes as they are seen, the hl.leverage channel of vike-data stream hl
  • vike-hl-trader-profile: the wallet behind a big change