360 Secure SkillHub
360 安全技能中心

vike-options-flow

通过 MCP、CLI 或 curl 调用 Vike 数据接口,获取 Deribit 上 BTC、ETH、SOL 期权成交流,按到期日或时间桶汇总成交量、权利金、看跌/看涨比率与净权利金,并给出方向解读。不提供逐行权价、单笔交易、未平仓量、隐含波动率或希腊值。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-options-flow
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-options-flow
description
Are option traders betting up or down on BTC, ETH or SOL - every Deribit option trade summed per expiry or per time bucket (1 minute to 1 day) over any window since 2024-12-03 - put/call ratio by volume and by premium, call and put premium in USD, and the net premium takers bought or sold on calls and on puts, with the window's total. Use when the user asks "are traders buying calls or puts on BTC today" / "BTC options put call ratio" / "is there put buying in ETH options this week" / "what is being traded in the December 25 expiry" / "options flow sentiment on Deribit" / "net premium on SOL options".
allowed-tools
Bash(vike-data:*)

vike-options-flow

Deribit's option tape for one underlying, summed. 1 request per call. BTC and ETH are Deribit's inverse options; SOL is its SOL_USDC options. Every number is a sum over trades: there is no per-strike breakdown, no list of single (block) trades, no open interest, implied volatility or greeks.

Call it

Use the first of these that is available:

  1. MCP: the options_flow tool with the optional symbol (BTC default, ETH, SOL), by, interval, start, end, expiry, limit.
  2. CLI:
    vike-data md options-flow --json                                          # BTC, the last 24 hours, one row per expiry
    vike-data md options-flow ETH --by time --interval 1d --start 2026-11-25 --json   # ETH per UTC day since a date
    vike-data md options-flow BTC --expiry 2026-12-25 --start 2026-11-01 --json       # one expiry, traded since Nov 1
    vike-data md options-flow SOL --by time --interval 1h --json             # SOL per hour, the last 24 hours
    
    The table view prints the rows and then the window's total as a last row.
  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/options/flow?symbol=ETH&by=time&interval=4h" -H "X-API-KEY: $TOKEN"
    
Flag Default Values
[symbol] BTC BTC, ETH, SOL
--by expiry expiry (one row per expiry date, soonest first) or time (one row per bucket, newest first)
--interval 1h 1m, 5m, 15m, 1h, 4h, 1d: the UTC bucket of --by time
--start, --end the last 24 hours ISO-8601 or unix seconds, UTC; end exclusive; at most 366 days apart; history from 2024-12-03
--expiry every expiry YYYY-MM-DD: only options expiring that day (Deribit expires at 08:00 UTC)
--limit 500 1-5000 rows; total still counts every row

Reading the answer

The envelope is {symbol, by, start, end, expiry, notes, total, expiries}; with --by time, interval and buckets replace expiries. start and end are unix seconds. Each row (expiry as YYYY-MM-DD, or ts the bucket's start) and total carry:

  • trades;
  • call_volume, put_volume (in coins: BTC, ETH, SOL) and put_call_ratio (put over call volume; null without calls);
  • call_premium_usd, put_premium_usd (premium paid, USD) and put_call_premium_ratio;
  • call_net_premium_usd and put_net_premium_usd: premium the takers BOUGHT minus premium they SOLD, positive = net buying; net_premium_usd is their sum.

How to read direction:

Calls (call_net_premium_usd) Puts (put_net_premium_usd) Lean
bought (+) sold (-) upside: paying for calls, selling puts
sold (-) bought (+) downside or hedging: paying for puts
bought (+) bought (+) buying options both ways: a bet on a move, not a direction
sold (-) sold (-) selling options both ways: a bet on calm
  • net_premium_usd is not a direction. It adds calls and puts; read the two legs apart.
  • A put_call_ratio above 1 means more puts than calls by volume. Volume counts buyers and sellers alike: pair it with the net premium to say who paid.
  • Compare a ratio with the same coin's own recent days (--by time --interval 1d over a week or two), not with a fixed level.
  • Lead with total for "today"; use expiries to say where the flow sits (this week's expiry or the quarterly).
  • The default window ends now, so the newest bucket or today's expiry is partial; say so.

Example of the read (BTC, the 24 hours to 2026-12-02 01:08 UTC): calls net sold for $2.79M, puts net bought for $2.20M, put/call 0.86 by volume and 1.05 by premium: takers paid for puts and sold calls, a downside or hedging lean.

Limits

  • Deribit only, and three underlyings: BTC, ETH, SOL. Another symbol is a 400.
  • The taker side says who crossed the spread, not whether a trade opened or closed a position: a taker buying a put can be closing a short put.
  • No strike, no single trades, no open interest, no implied volatility. Don't promise "where the big strikes are" or "the largest block today".
  • A window spans at most 366 days; a long window with --by time --interval 1m hits --limit, so pick a bucket that fits.

Errors

  • symbol must be one of ['BTC', 'ETH', 'SOL'], expiry must be a date, YYYY-MM-DD, start must be before end, the window may span at most 366 days: a 400; the CLI exits 1 with the message. Fix the flag.
  • unknown query parameter 'strike' (curl): there is no strike filter; the route takes by, end, expiry, interval, limit, start, symbol.
  • Exit code 3 or HTTP 429: the day's requests are used up; show the server's message and stop.

Anti-patterns

  • Don't call net_premium_usd > 0 bullish: buying puts makes it positive too.
  • Don't read put/call volume as dollars, or premium as notional (premium is the price paid for the options, not the size of the underlying).
  • Don't present one hour's flow as a market view; give the window.
  • Don't present it as a forecast or advice.

Pairs well with

  • vike-futures-basis for what Deribit's dated futures on the same expiries pay over spot
  • vike-perp-funding and vike-perp-crowding for the perpetual side of the same coin
  • vike-perp-liquidations for forced selling or buying in the same window