360 Secure SkillHub
360 安全技能中心

vike-perp-liquidations

通过 Vike 数据服务的 MCP 工具、CLI 或 HTTP 接口,查询 Binance、Bybit、OKX、Deribit、Aster 的永续合约强制平仓记录,可按币种、交易所、方向和时间窗口筛选,并聚合成分钟至日级的多空美元总额;同时说明各交易所数据覆盖缺口。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-perp-liquidations
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-perp-liquidations
description
How much got liquidated on the centralised exchanges, and on which side - forced liquidations of perpetual futures on Binance, Bybit, OKX, Deribit and Aster, one row per liquidation or long and short dollar totals per minute, hour or day, for every coin or one, one venue or all, recorded since 2026-11-30, with how complete each venue's feed is. Use when the user asks "how much got liquidated today" / "were longs or shorts liquidated in the BTC drop" / "biggest ETH liquidations on Bybit in the last hour" / "liquidations per hour since yesterday" / "did shorts get squeezed on Binance".
allowed-tools
Bash(vike-data:*)

vike-perp-liquidations

Forced liquidations as the exchanges publish them, newest first. 1 request per call. Pass the base asset (BTC, not BTCUSDT); venues are lower case. Hyperliquid is not here: its liquidations, and where the next ones sit, are vike-hl-liquidation-radar.

Call it

Use the first of these that is available:

  1. MCP: the perp_liquidations tool with the optional symbol, exchange, side, start, end, interval, limit (its default is 100 rows, not 500).
  2. CLI:
    vike-data md liquidations --interval 1d --json                              # every coin and venue: long and short USD per UTC day
    vike-data md liquidations BTC --interval 1h --start 2026-12-01 --json       # BTC per hour since a date
    vike-data md liquidations ETH --exchange bybit --side short --limit 20 --json   # the latest 20 ETH shorts liquidated on Bybit
    vike-data md liquidations --limit 50 --json                                 # the latest 50 single liquidations, any coin
    
  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 as vike-core says.
    curl -s "https://data.vike.io/v1/marketdata/perp/liquidations?symbol=BTC&interval=1d" -H "X-API-KEY: $TOKEN"
    
Flag (API name) Default Values
[symbol] every coin base asset: BTC, ETH, XAU, NVDA
--exchange every venue binance, bybit, okx, deribit, aster
--side both long or short: the position that was liquidated
--start, --end everything recorded ISO-8601 (2026-12-01, 2026-12-01T08:00:00Z) or unix seconds, UTC; end exclusive
--interval none: one row per liquidation 1m, 5m, 15m, 1h, 4h, 1d (UTC buckets)
--limit 500 (MCP 100) 1-5000 rows or buckets, newest first

Reading the answer

The envelope echoes symbol, exchange (all when not set), side (both), and carries coverage: what each venue's feed misses.

  • One row per liquidation (liquidations): ts (unix seconds), exchange, symbol, native_symbol (the venue's own name, BTCUSDT), side, price, qty (coins), notional_usd (price x qty).
  • With --interval (buckets): ts (the bucket's start, unix seconds), long_usd, short_usd, long_count, short_count, summed over every matching venue and coin. A bucket with nothing recorded has no row.
  • side: long means a long position was liquidated: forced selling into a falling price. short liquidations are forced buying into a rise. "Longs got liquidated" is long_usd up.
  • Every total is a floor, not the full number. From coverage: binance and aster publish at most one liquidation per symbol per second (the largest), so their counts and totals undercount; okx says its feed does not carry every liquidation; bybit and deribit publish every one. price is binance's and aster's average fill, bybit's and okx's bankruptcy price, deribit's fill price, and a deribit fill that liquidated both sides is two rows.
  • For one venue's share, run the bucket call again with --exchange; buckets never split by venue or by coin.

Report the window and the venues next to each number, e.g. "BTC, Dec 1 UTC, all five venues: $19.7M longs and $27.4M shorts liquidated (a floor: Binance and Aster undercount)".

Limits

  • Recorded live since 2026-11-30: nothing before it, and a minute a feed was down is not refilled. An empty buckets or liquidations list before that day means not recorded, never zero. To see the first recorded day: --interval 1d --limit 1000 and read the last bucket.
  • No ranking of coins. Buckets sum every coin. For "which coins were liquidated most", either run --interval 1d once per candidate coin, or take single rows over a short window (the last hour) and sum notional_usd by symbol yourself. A market-wide day held about 70,000 rows on 2026-12-01: if a single-row call returns exactly --limit rows, the window was cut, so shorten it.
  • Single rows come newest first, so a long window with a small --limit shows only its newest end.

Errors

  • A 400 names the fix, e.g. side must be one of ['long', 'short'], interval must be one of ['1m', ...], start must be an ISO-8601 time. The CLI exits 1 with that message: fix the flag, don't retry as is.
  • unknown query parameter (curl): the route takes only the parameters in the table.
  • Exit code 3 or HTTP 429: the day's requests are used up; show the server's message (it says how to get 400 a day) and stop.

Anti-patterns

  • Don't read side: long as "longs bought": it is longs forced out.
  • Don't add totals from different windows, or call a total complete.
  • Don't compare this with Hyperliquid's own liquidation numbers as if one feed: Hyperliquid is vike-data hl liquidations (vike-hl-liquidation-radar).
  • Don't forecast a cascade from past liquidations; where open positions would be liquidated is the Hyperliquid radar, not this.

Pairs well with

  • vike-hl-liquidation-radar for Hyperliquid liquidations and the risk map
  • vike-perp-open-interest to see how much open interest the liquidations removed
  • vike-perp-crowding for whether the side that got liquidated was crowded first
  • vike-stream for liquidations as they happen (Hyperliquid)