OptionWhales Intelligence Skill
Two capabilities in one skill:
- 1. Option Flow — query the OptionWhales Pro API for real-time institutional
option flow analysis (intent momentum, abnormal trades, rankings).
- 2. AI Reports — generate and retrieve AI-powered trade analysis reports via
a 22-node LLM pipeline (market analysis, flow, fundamentals, news, bull/bear
debate, risk assessment, BUY/SELL/HOLD recommendation).
Free tier available! Sign up at https://www.optionwhales.io to get a free
API key instantly — no credit card required.
When to Use
✅ USE this skill when:
- - "What's the option flow on AAPL today?"
- "Show me unusual options activity"
- "What are institutions buying?"
- "Is there bullish or bearish momentum in TSLA?"
- "Show me the top momentum tickers"
- "Generate an AI report for TSLA"
- "What's the AI analysis on SPY today?"
- "Show my report history"
- "Check my report generation quota"
When NOT to Use
❌ DON'T use this skill when:
- - Stock price quotes only → use a stock/market data skill
- Historical stock charts → use a charting skill
- GEX / gamma exposure queries → not exposed via API
- Options pricing or Greeks calculation → use a quant tool
- Crypto or forex → this is US equity options only
Setup
Option Flow (required)
Requires an OptionWhales API key.
- - Free key: Sign up at https://www.optionwhales.io/settings/api-keys
- Pro key: Full access — all tickers, all fields, historical sessions
CODEBLOCK0
AI Reports (optional)
Requires an AI service Bearer token (contact system administrator).
CODEBLOCK1
Part 1 — Option Flow API
Base URL: INLINECODE0
All requests require header: INLINECODE1
Flow API Reference
Current Flow Rankings
CODEBLOCK2
Response includes per-ticker: intent_primary (Directional/Gamma/LongVol/ShortVol/Mixed),
direction_bias (bullish/bearish/neutral), intent_confidence (0-1), momentum_fast,
momentum_slow, coherence_last, strength_last, key_strikes.
Ticker Detail (Clusters + Time Series)
CODEBLOCK3
Returns: ranking (summary), clusters (strategy clusters with dollar Greeks),
cluster_trades (individual trades), time_series (30-min momentum buckets).
Historical Sessions
CODEBLOCK4
Momentum Rankings
CODEBLOCK5
Momentum History
CODEBLOCK6
Abnormal Trades
CODEBLOCK7
Account Usage
CODEBLOCK8
WebSocket — Real-Time Abnormal Trades (Pro Only)
CODEBLOCK9
Flow Helper Script
CODEBLOCK10
Interpreting Flow Results
Intent Types
| Intent | Meaning |
|---|
| Directional | Net delta-dominant flow — strong directional bet |
| Gamma |
Gamma-dominant — positioning for rapid price moves |
|
LongVol | Buying volatility (long vega, positive theta risk) |
|
ShortVol | Selling volatility (short vega, positive theta) |
|
Mixed | No dominant Greek — conflicting signals |
Direction Bias
- - bullish: Net positive delta flow
- bearish: Net negative delta flow
- neutral: Delta share below 15% of total flow
Confidence Score
0–1 scale combining flow coherence (how aligned the trades are) and strength
(total dollar Greek magnitude). Above 0.7 is high conviction.
Momentum
- -
momentum_fast (α=0.35): responsive to recent flow changes - INLINECODE15 (α=0.15): trend-smoothed
- Positive = bullish acceleration, negative = bearish acceleration
Part 2 — AI Report Service
Base URL: INLINECODE16
All requests require header: INLINECODE17
Credit System
| Tier | Credits/Day | Can Generate? |
|---|
| FREE | 0 | No — hard-blocked |
| TRIAL |
5 | Yes |
| PRO | 5 | Yes |
| ADMIN | Unlimited | Yes |
Additional constraints:
- - 5-minute cooldown per ticker after a successful generation
- ≥10% premium increase required to regenerate for the same ticker
- Credits reset daily at 12:00 AM ET
AI Report API Reference
Generate a Report
CODEBLOCK11
Returns: INLINECODE18
Poll Job Status
CODEBLOCK12
Fetch Report (JSON)
CODEBLOCK13
Fetch Report (Markdown)
CODEBLOCK14
Report History
CODEBLOCK15
Per-Ticker Summary
CODEBLOCK16
Check Quota
CODEBLOCK17
Check Eligibility
CODEBLOCK18
Health Check
CODEBLOCK19
AI Report Helper Script
CODEBLOCK20
Interpreting AI Report Results
Decision Actions
| Action | Meaning |
|---|
| BUY | Bullish — AI recommends long exposure on the underlying |
| SELL |
Bearish — AI recommends short exposure / protective puts |
|
HOLD | Neutral — no new directional exposure recommended |
Confidence Score
0–100 scale reflecting the AI pipeline's conviction. Above 70% = high conviction;
below 50% = conflicting signals.
Report Sections
| Section | Content |
|---|
| Option Flow | Institutional flow analysis, intent momentum, flow coherence |
| Abnormal Flow |
Large/unusual trades flagged by the detection engine |
| Market Structure | GEX levels, call/put walls, max pain, key strike zones |
| Market | Macro indicators, OHLCV, technical levels |
| Fundamentals | Company fundamentals, valuation metrics |
| News | Recent news sentiment analysis |
| Debate | Bull vs Bear researcher arguments with judge decision |
| Risk | Three-analyst risk assessment (aggressive, conservative, neutral) |
Example Queries → Commands
| User asks | Tool |
|---|
| "What's the flow today?" | INLINECODE19 |
| "Show TSLA option activity" |
python3 {baseDir}/scripts/optionflow.py flow --ticker TSLA |
| "Top momentum tickers" |
python3 {baseDir}/scripts/optionflow.py momentum |
| "Any unusual trades?" |
python3 {baseDir}/scripts/optionflow.py abnormal |
| "Is AAPL bullish or bearish?" |
python3 {baseDir}/scripts/optionflow.py flow --ticker AAPL → check
direction_bias |
| "Generate AI report for TSLA" |
python3 {baseDir}/scripts/aireport.py generate --ticker TSLA --user-id <user> --user-tier PRO |
| "Show my report history" |
python3 {baseDir}/scripts/aireport.py summary --user-id <user> --trading-day <today> |
| "Check my report quota" |
python3 {baseDir}/scripts/aireport.py quota --user-id <user> --tier PRO |
| "Show my API usage" |
python3 {baseDir}/scripts/optionflow.py usage |
Notes
- - Option flow data updates every 30 minutes during market hours (9:30 AM – 4:00 PM ET)
- Final daily data available after 7:30 AM ET next trading day (with full OI deltas)
- Free tier: 10 requests/minute, 200/day; top 3 tickers, last 5 abnormal trades
- Pro tier: 60 requests/minute, 5000/day; all tickers, all fields, WebSocket, historical sessions
- AI reports take 30–90 seconds to generate (22-node pipeline)
- US equity options only (no futures, crypto, or forex)
OptionWhales 智能技能
一个技能包含两大功能:
- 1. 期权流 — 查询 OptionWhales Pro API 获取实时机构期权流分析(意图动量、异常交易、排名)。
- AI 报告 — 通过 22 节点 LLM 流水线生成并检索 AI 驱动的交易分析报告(市场分析、期权流、基本面、新闻、多空辩论、风险评估、买入/卖出/持有建议)。
提供免费套餐! 在 https://www.optionwhales.io 注册即可立即获取免费 API 密钥 — 无需信用卡。
何时使用
✅ 在以下情况使用此技能:
- - 今天 AAPL 的期权流如何?
- 显示异常期权活动
- 机构在买什么?
- TSLA 有看涨或看跌动量吗?
- 显示顶部动量标的
- 为 TSLA 生成 AI 报告
- 今天 SPY 的 AI 分析是什么?
- 显示我的报告历史
- 查看我的报告生成配额
何时不使用
❌ 在以下情况不要使用此技能:
- - 仅查询股价 → 使用股票/市场数据技能
- 历史股价图表 → 使用图表技能
- GEX / 伽马暴露查询 → API 未提供
- 期权定价或 Greeks 计算 → 使用量化工具
- 加密货币或外汇 → 仅限美股期权
设置
期权流(必需)
需要 OptionWhales API 密钥。
- - 免费密钥: 在 https://www.optionwhales.io/settings/api-keys 注册
- 专业密钥: 完全访问 — 所有标的、所有字段、历史会话
bash
export OPTIONWHALESAPIKEY=owfreeyourkeyhere # 或 owpro...
AI 报告(可选)
需要 AI 服务 Bearer 令牌(联系系统管理员)。
bash
export AIAPITOKEN=yourbearertoken_here
第一部分 — 期权流 API
基础 URL:https://api.optionwhales.io/v1
所有请求需要请求头:X-API-Key: $OPTIONWHALESAPIKEY
流 API 参考
当前流排名
bash
curl -s -H X-API-Key: $OPTIONWHALESAPIKEY \
https://api.optionwhales.io/v1/flow/current | python3 -m json.tool
响应包含每个标的:intentprimary(方向性/伽马/长波动率/短波动率/混合)、directionbias(看涨/看跌/中性)、intentconfidence(0-1)、momentumfast、momentumslow、coherencelast、strengthlast、keystrikes。
标的详情(聚类 + 时间序列)
bash
curl -s -H X-API-Key: $OPTIONWHALESAPIKEY \
https://api.optionwhales.io/v1/flow/current/AAPL | python3 -m json.tool
返回:ranking(摘要)、clusters(策略聚类及美元 Greeks)、clustertrades(单笔交易)、timeseries(30 分钟动量桶)。
历史会话
bash
系统健康状态和会话状态
curl -s -H X-API-Key: $OPTIONWHALES
APIKEY \
https://api.optionwhales.io/v1/flow/sessions | python3 -m json.tool
获取特定会话的排名
curl -s -H X-API-Key: $OPTIONWHALES
APIKEY \
https://api.optionwhales.io/v1/flow/2025-06-02 | python3 -m json.tool
从历史会话获取特定标的
curl -s -H X-API-Key: $OPTIONWHALES
APIKEY \
https://api.optionwhales.io/v1/flow/2025-06-02/AAPL | python3 -m json.tool
动量排名
bash
curl -s -H X-API-Key: $OPTIONWHALESAPIKEY \
https://api.optionwhales.io/v1/momentum/rankings | python3 -m json.tool
动量历史
bash
curl -s -H X-API-Key: $OPTIONWHALESAPIKEY \
https://api.optionwhales.io/v1/momentum/AAPL/history | python3 -m json.tool
异常交易
bash
当前会话
curl -s -H X-API-Key: $OPTIONWHALES
APIKEY \
https://api.optionwhales.io/v1/abnormal-trades/current | python3 -m json.tool
历史会话
curl -s -H X-API-Key: $OPTIONWHALES
APIKEY \
https://api.optionwhales.io/v1/abnormal-trades/2025-06-02 | python3 -m json.tool
账户使用情况
bash
curl -s -H X-API-Key: $OPTIONWHALESAPIKEY \
https://api.optionwhales.io/v1/account/usage | python3 -m json.tool
WebSocket — 实时异常交易(仅限专业版)
bash
python3 -c
import asyncio, websockets, json
async def stream():
uri = wss://api.optionwhales.io/v1/ws/abnormal-trades?apikey=YOURPRO_KEY
async with websockets.connect(uri) as ws:
await ws.send(json.dumps({type: subscribe, tickers: [AAPL, NVDA, TSLA]}))
async for msg in ws:
data = json.loads(msg)
if data[type] == abnormal_trade:
print(json.dumps(data[data], indent=2))
asyncio.run(stream())
流辅助脚本
bash
当前流排名
python3 {baseDir}/scripts/optionflow.py flow
特定标的的流
python3 {baseDir}/scripts/optionflow.py flow --ticker AAPL
历史会话流
python3 {baseDir}/scripts/optionflow.py flow --session 2025-06-02
动量排名
python3 {baseDir}/scripts/optionflow.py momentum
前 5 动量标的
python3 {baseDir}/scripts/optionflow.py momentum --top 5
当前异常交易
python3 {baseDir}/scripts/optionflow.py abnormal
历史异常交易
python3 {baseDir}/scripts/optionflow.py abnormal --session 2025-06-02
解读流结果
意图类型
| 意图 | 含义 |
|---|
| 方向性 | 净 Delta 主导流 — 强方向性押注 |
| 伽马 |
伽马主导 — 为快速价格波动布局 |
|
长波动率 | 买入波动率(长 Vega,正 Theta 风险) |
|
短波动率 | 卖出波动率(短 Vega,正 Theta) |
|
混合 | 无主导 Greeks — 信号冲突 |
方向偏差
- - 看涨:净正 Delta 流
- 看跌:净负 Delta 流
- 中性:Delta 份额低于总流的 15%
置信度分数
0–1 标度,结合流一致性(交易对齐程度)和强度(总美元 Greek 规模)。高于 0.7 为高确信度。
动量
- - momentumfast(α=0.35):对近期流变化敏感
- momentumslow(α=0.15):趋势平滑
- 正值 = 看涨加速,负值 = 看跌加速
第二部分 — AI 报告服务
基础 URL:https://ai-service-production-b44b.up.railway.app
所有请求需要请求头:Authorization: Bearer $AIAPITOKEN
积分系统
5 | 是 |
| 专业 | 5 | 是 |
| 管理员 | 无限 | 是 |
额外限制:
- - 成功生成后每个标的有 5 分钟冷却期
- 同一标的需溢价增加 ≥10% 才能重新生成
- 积分每天美国东部时间凌晨 12:00 重置
AI 报告 API 参考
生成报告
bash
curl