当前位置: 首页 > Skill >

optionwhales

optionwhales

optionwhales

实时查询期权流向情报,生成AI驱动的交易分析报告。用于用户询问期权流向、异常期权活动、机构等。

1.0.1 2026.11.10 165
获取Skill文件查看使用说明
作 者:苏知 许可证: 更新时间:2026.11.10
本文目录展开

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
export OPTIONWHALES_API_KEY="ow_free_your_key_here"  # or ow_pro_...

AI Reports (optional)

Requires an AI service Bearer token (contact system administrator).

export AI_API_TOKEN="your_bearer_token_here"

Part 1 — Option Flow API

Base URL: https://api.optionwhales.io/v1

All requests require header: X-API-Key: $OPTIONWHALES_API_KEY

Flow API Reference

Current Flow Rankings

curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/flow/current" | python3 -m json.tool

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)

curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/flow/current/AAPL" | python3 -m json.tool

Returns: ranking (summary), clusters (strategy clusters with dollar Greeks), cluster_trades (individual trades), time_series (30-min momentum buckets).

Historical Sessions

# System health and session status
curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/flow/sessions" | python3 -m json.tool

# Get a specific session's rankings
curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/flow/2025-06-02" | python3 -m json.tool

# Get a specific ticker from a historical session
curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/flow/2025-06-02/AAPL" | python3 -m json.tool

Momentum Rankings

curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/momentum/rankings" | python3 -m json.tool

Momentum History

curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/momentum/AAPL/history" | python3 -m json.tool

Abnormal Trades

# Current session
curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/abnormal-trades/current" | python3 -m json.tool

# Historical session
curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/abnormal-trades/2025-06-02" | python3 -m json.tool

Account Usage

curl -s -H "X-API-Key: $OPTIONWHALES_API_KEY" 
  "https://api.optionwhales.io/v1/account/usage" | python3 -m json.tool

WebSocket — Real-Time Abnormal Trades (Pro Only)

python3 -c "
import asyncio, websockets, json
async def stream():
    uri = 'wss://api.optionwhales.io/v1/ws/abnormal-trades?api_key=YOUR_PRO_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())
"

Flow Helper Script

# Current flow rankings
python3 {baseDir}/scripts/optionflow.py flow

# Flow for specific ticker
python3 {baseDir}/scripts/optionflow.py flow --ticker AAPL

# Historical session flow
python3 {baseDir}/scripts/optionflow.py flow --session 2025-06-02

# Momentum rankings
python3 {baseDir}/scripts/optionflow.py momentum

# Top 5 momentum tickers
python3 {baseDir}/scripts/optionflow.py momentum --top 5

# Current abnormal trades
python3 {baseDir}/scripts/optionflow.py abnormal

# Historical abnormal trades
python3 {baseDir}/scripts/optionflow.py abnormal --session 2025-06-02

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
  • momentum_slow (α=0.15): trend-smoothed
  • Positive = bullish acceleration, negative = bearish acceleration

Part 2 — AI Report Service

Base URL: https://ai-service-production-b44b.up.railway.app

All requests require header: Authorization: Bearer $AI_API_TOKEN

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

curl -s -X POST 
  -H "Authorization: Bearer $AI_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{"user_id":"user@example.com","user_tier":"PRO","ticker":"TSLA","session_date":"2026-03-25","session_type":"live","large_orders":[]}' 
  "https://ai-service-production-b44b.up.railway.app/reports"

Returns: {"job_id": "abc-123", "status": "queued", "message": "..."}

Poll Job Status

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/reports/{job_id}"

Fetch Report (JSON)

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/reports/by-id?user_id=user@example.com&ticker=TSLA&trading_day=2026-03-25&report_id=rpt-456"

Fetch Report (Markdown)

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/reports/{job_id}/artifact/md"

Report History

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/reports/history?ticker=TSLA&trading_day=2026-03-25&user_id=user@example.com"

Per-Ticker Summary

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/reports/history/summary?user_id=user@example.com&trading_day=2026-03-25"

Check Quota

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/quotas?user_id=user@example.com&tier=PRO"

Check Eligibility

curl -s -X POST 
  -H "Authorization: Bearer $AI_API_TOKEN" 
  -H "Content-Type: application/json" 
  -d '{"user_id":"user@example.com","user_tier":"PRO","ticker":"TSLA","session_date":"2026-03-25","session_type":"live","large_orders":[]}' 
  "https://ai-service-production-b44b.up.railway.app/eligibility"

Health Check

curl -s -H "Authorization: Bearer $AI_API_TOKEN" 
  "https://ai-service-production-b44b.up.railway.app/health"

AI Report Helper Script

# Generate a report
python3 {baseDir}/scripts/aireport.py generate --ticker TSLA --user-id user@example.com --user-tier PRO

# Check job status
python3 {baseDir}/scripts/aireport.py status --job-id abc-123

# Fetch report (JSON)
python3 {baseDir}/scripts/aireport.py report --user-id user@example.com --ticker TSLA --trading-day 2026-03-25 --report-id rpt-456

# Fetch report (Markdown)
python3 {baseDir}/scripts/aireport.py report --job-id abc-123 --format markdown

# Browse existing reports
python3 {baseDir}/scripts/aireport.py summary --user-id user@example.com --trading-day 2026-03-25

# List reports for a ticker
python3 {baseDir}/scripts/aireport.py history --ticker TSLA --trading-day 2026-03-25 --user-id user@example.com

# Check quota
python3 {baseDir}/scripts/aireport.py quota --user-id user@example.com --tier PRO

# Check eligibility
python3 {baseDir}/scripts/aireport.py eligibility --ticker TSLA --user-id user@example.com --user-tier PRO

# Service health
python3 {baseDir}/scripts/aireport.py health

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?" python3 {baseDir}/scripts/optionflow.py flow
"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)

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,016
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,004
PHP集成RabbitMQ实现消息队列的完整步骤

使用 php-amqplib 库,通过建立连接、声明交换机与队列并绑定,即可在 PHP 中实现消息的发送与消费。

2026.05.24 1,001
Apache开启.htaccess及使用方法详解

本文介绍如何在本地Apache环境中启用.htaccess文件,主要涉及修改httpd.conf中的AllowOverride参数。同时详细解析.htaccess的多种实用功能,包括自定义错误页面、目录密码保护、IP访问限制、URL自动转向、默认首页设置以及防止图片盗链等配置方法,并分析了使用.htaccess对服务器性能和安全性的潜在影响。

2026.05.09 1,001
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,001
Linux内核提权风险待核实,先查版本与补丁

CVE-2026-78901在摘要中被称为Linux内核ext4本地提权漏洞,CVSS评分7.8,但上游正文暂未核实。本文提供通用只读排查命令,帮运维和开发者核对当前运行内核、发行版补丁及升级生效状态。

2026.12.02 1,000
Skill 文件
  • SKILL.md
    • OptionWhales Intelligence Skill
    • When to Use
    • When NOT to Use
    • Setup
      • Option Flow (required)
      • AI Reports (optional)
    • Part 1 — Option Flow API
    • Flow API Reference
      • Current Flow Rankings
      • Ticker Detail (Clusters + Time Series)
      • Historical Sessions
      • Momentum Rankings
      • Momentum History
      • Abnormal Trades
      • Account Usage
      • WebSocket — Real-Time Abnormal Trades (Pro Only)
    • Flow Helper Script
    • Interpreting Flow Results
      • Intent Types
      • Direction Bias
      • Confidence Score
      • Momentum
    • Part 2 — AI Report Service
    • Credit System
    • AI Report API Reference
      • Generate a Report
      • Poll Job Status
      • Fetch Report (JSON)
      • Fetch Report (Markdown)
      • Report History
      • Per-Ticker Summary
      • Check Quota
      • Check Eligibility
      • Health Check
    • AI Report Helper Script
    • Interpreting AI Report Results
      • Decision Actions
      • Confidence Score
      • Report Sections
    • Example Queries → Commands
    • Notes
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期