当前位置: 首页 > Skill >

Digital Oracle

Digital Oracle

Digital Oracle

使用市场交易数据回答预测问题,而非个人意见。适用于用户询问关于地缘政治、经济、市场、行业等的概率问题。

1.1.0 2026.11.18 896
获取Skill文件查看使用说明
作 者:江舟 许可证: 更新时间:2026.11.18
本文目录展开

digital-oracle

Markets are efficient. Price contains all public information. Reading price = reading market consensus.

Methodology

Answer questions using only market trading data — no news, opinions, or statistical reports as causal evidence. If something is true, some market has already priced it in.

Five iron rules:

  1. Trading data only — prices, volume, open interest, spreads, premiums. Never cite analyst opinions.
  2. Explicit reasoning from price to judgment — explain clearly "why this price answers this question."
  3. Multi-signal cross-validation — never conclude from a single signal. At least 3 independent dimensions.
  4. Label the time horizon of each signal — options price 3 months, equipment orders price 3 years — don't mix them in the same vote.
  5. Structured output — the final report must follow the Step 5 template: layered signal tables → contradiction analysis → probability scenarios → signal consistency assessment. Do not substitute prose for structured reporting.

Workflow

Step 1: Understand the question

Decompose the user's question into:

  • Core variable: What event or trend?
  • Time window: Is the user asking about 3 months, 1 year, or 5 years?
  • Priceability: Is there real money being traded on this outcome?

Step 2: Select signals

Based on question type, select from the signal menu below. Don't use just one category — cover at least 3.

Geopolitical conflict / War risk

  • Polymarket: Search for related event contracts (ceasefire, invasion, regime change, declaration of war)
  • Kalshi: Search for related binary contracts
  • Safe-haven assets: Gold (GC=F), silver (SI=F), Swiss franc (USDCHF=X)
  • Conflict proxies: Crude oil (CL=F), natural gas (NG=F), wheat (ZW=F), defense ETF (ITA), defense stocks
  • Risk ratios: Copper/Gold ratio (risk-off indicator), Gold/Silver ratio
  • CFTC COT: Institutional positioning changes in crude/gold/wheat (which direction is smart money betting)
  • BIS: Central bank policy rate trends in relevant countries
  • FearGreedProvider: CNN Fear & Greed Index (composite of 7 price signals)
  • Web search: VIX, MOVE index, sovereign CDS, war risk premiums, BDI freight rates, high-yield OAS
  • Currencies: Currency pairs of relevant countries (e.g. USDRUB=X, USDCNY=X)
  • Country ETFs: Asset flows in relevant countries (e.g. FXI, EWY)

Economic recession / Macro cycle

  • Treasury: Yield curve shape (10Y-2Y spread, 10Y-3M spread), real rates, breakeven inflation
  • YahooPriceProvider: SPY, copper (HG=F), crude oil (CL=F), price trends
  • Risk ratios: Copper/Gold ratio
  • CFTC COT: Speculative net positions in copper/crude (is managed money bullish or bearish)
  • BIS: Credit-to-GDP gap (credit overheating = late cycle), policy rate directions
  • World Bank: GDP growth rate historical trends, cross-country comparisons
  • Deribit: BTC futures basis (risk appetite proxy)
  • CoinGecko: Crypto total market cap + BTC dominance (risk appetite proxy)
  • FearGreedProvider: CNN Fear & Greed Index (7 price signals composite → 0-100)
  • CMEFedWatchProvider: Market-implied FOMC rate change probabilities from futures
  • Polymarket: Recession-related contracts, central bank rate path
  • Currencies: DXY/dollar strength, emerging market currencies
  • Web search: High-yield bond spread (HY OAS), TED spread, MOVE index, TTF gas, BDI freight rates

Industry cycle / Bubble assessment

  • YahooPriceProvider: Industry leader stock trends, sector ETFs
  • Find the industry's "single-purpose commodity" (e.g. GPU rental price → AI, rebar → construction)
  • Upstream equipment maker orders/stock price (e.g. ASML → semiconductors)
  • Leader company valuation discount (e.g. TSMC vs peers → Taiwan Strait risk pricing)
  • EDGAR: Industry leader insider trading cadence (Form 4) — concentrated selling = bearish signal
  • CFTC COT: Institutional positioning changes in related commodities
  • CoinGecko: For crypto industry, look at BTC/ETH/altcoin market cap distribution
  • Web search: VC funding concentration, leveraged ETF concentration, margin debt levels
  • Deribit: Implied volatility of related crypto assets

Asset pricing / Whether to buy

  • YahooPriceProvider: Target asset price trend (daily/weekly/monthly)
  • Relative price changes of correlated assets (divergence between two commodities = structural signal)
  • Treasury: Risk-free rate as valuation anchor
  • YFinance: Options chain (IV, put/call ratio, max pain, Greeks, implied move)
  • EDGAR: Insider selling cadence (heavy Form 4 selling = insiders bearish)
  • CFTC COT: Speculative vs commercial net position divergence for commodity assets
  • CoinGecko: For crypto assets, check market cap, ATH/ATL distance, 24h volatility
  • Deribit: Crypto options chain (implied volatility = market's expected range)
  • Polymarket/Kalshi: Probability pricing of related events
  • FearGreedProvider: CNN Fear & Greed composite score (momentum, breadth, VIX, put/call, junk bond demand, volatility, safe haven)
  • Web search: VIX, corporate bond issuance volume, analyst rating distribution

Stock/Options analysis / Crash probability

  • YFinance: Options chain → ATM IV (expected volatility), IV skew (upside/downside fear asymmetry), put/call ratio (bull/bear sentiment), max pain (market maker profit zone), implied move (expected price range), Greeks (delta ≈ ITM probability)
  • YahooPriceProvider: Underlying historical price → realized volatility (compare vs implied volatility to judge options premium)
  • Kalshi: SPY/NASDAQ price range markets → direct probability pricing
  • CFTC COT: S&P 500/VIX futures positioning → institutional direction
  • Defensive rotation: XLY (cyclical) vs XLP (defensive) vs XLU (utilities) relative performance → market defensiveness
  • Treasury: Yield curve shape → recession signal
  • FearGreedProvider: CNN Fear & Greed Index
  • Web search: VIX level, margin debt level, leveraged ETF concentration

Available trading symbols directory: See references/symbols.md Provider API reference: See references/providers.md

Step 3: Signal routing

Before fetching data, evaluate each candidate signal from Step 2 against three criteria:

  1. Relevance: Can this signal actually answer the user's specific question? (e.g., asking about Taiwan → skip CoinGecko)
  2. Time match: Does the signal's pricing horizon match the question's time window? (e.g., asking about 3 months → skip World Bank GDP which lags 1-2 years)
  3. Information increment: Does this signal provide an independent perspective not already covered by other signals? Avoid redundancy, keep complementary signals.

Only keep signals that pass all three checks. This reduces noise, saves fetch time, and produces cleaner analysis.

Step 4: Fetch data

Use digital-oracle's Python providers to fetch structured data, calling all sources in parallel with gather() (including web search):

from digital_oracle import (
    PolymarketProvider, PolymarketEventQuery,
    KalshiProvider, KalshiMarketQuery,
    YahooPriceProvider, PriceHistoryQuery,   # requires uv pip install yfinance
    DeribitProvider, DeribitFuturesCurveQuery,
    USTreasuryProvider, YieldCurveQuery,
    WebSearchProvider,
    CftcCotProvider, CftcCotQuery,
    CoinGeckoProvider, CoinGeckoPriceQuery,
    EdgarProvider, EdgarInsiderQuery,
    BisProvider, BisRateQuery,
    WorldBankProvider, WorldBankQuery,
    YFinanceProvider, OptionsChainQuery,      # requires uv pip install yfinance
    FearGreedProvider,
    CMEFedWatchProvider,
    gather,
)

pm = PolymarketProvider()
kalshi = KalshiProvider()
yahoo = YahooPriceProvider()  # requires uv pip install yfinance
deribit = DeribitProvider()
treasury = USTreasuryProvider()
web = WebSearchProvider()
cftc = CftcCotProvider()
coingecko = CoinGeckoProvider()
edgar = EdgarProvider(user_email="you@example.com")  # SEC requires email in User-Agent, otherwise 403
bis = BisProvider()
wb = WorldBankProvider()
yf = YFinanceProvider()  # requires uv pip install yfinance
fear_greed = FearGreedProvider()
fedwatch = CMEFedWatchProvider()

result = gather({
    "pm_events": lambda: pm.list_events(PolymarketEventQuery(slug_contains="...", limit=10)),
    "yield_curve": lambda: treasury.latest_yield_curve(),
    "gold": lambda: yahoo.get_history(PriceHistoryQuery(symbol="GC=F", limit=30)),
    # Institutional positioning
    "gold_cot": lambda: cftc.list_reports(CftcCotQuery(commodity_name="GOLD", limit=4)),
    # Crypto market sentiment
    "crypto": lambda: coingecko.get_prices(CoinGeckoPriceQuery(coin_ids=("bitcoin", "ethereum"))),
    # Insider trades
    "insider": lambda: edgar.get_insider_transactions(EdgarInsiderQuery(ticker="AAPL", limit=10)),
    # Central bank policy rates
    "rates": lambda: bis.get_policy_rates(BisRateQuery(countries=("US", "CN"), start_year=2023)),
    # GDP data
    "gdp": lambda: wb.get_indicator(WorldBankQuery(indicator="NY.GDP.MKTP.CD", countries=("US", "CN"))),
    # BTC futures term structure (risk appetite proxy)
    "btc_futures": lambda: deribit.get_futures_term_structure(DeribitFuturesCurveQuery(currency="BTC")),
    # Kalshi event markets (use event_ticker or series_ticker, not keyword search)
    "kalshi_fed": lambda: kalshi.list_markets(KalshiMarketQuery(series_ticker="KXFED", limit=10)),
    # Options chain (with Greeks)
    "spy_options": lambda: yf.get_chain(OptionsChainQuery(ticker="SPY", expiration="2026-04-17")),
    # CNN Fear & Greed (composite of 7 price signals)
    "fear_greed": lambda: fear_greed.get_index(),
    # CME FedWatch (implied rate probabilities from futures)
    "fedwatch": lambda: fedwatch.get_probabilities(),
    # Web search runs in parallel with structured providers
    "vix": lambda: web.search("VIX index current level"),
    "hy_spread": lambda: web.search("US high yield bond spread OAS"),
})

# Partial failures don't affect other results
curve = result.get("yield_curve")
vix_info = result.get_or("vix", None)  # WebSearchResult — use .text() to render

# Options data usage
chain = result.get_or("spy_options", None)
if chain:
    print(f"ATM IV: {chain.atm_iv:.1%}, Implied move: {chain.implied_move():.1%}")
    print(f"Put/Call OI ratio: {chain.put_call_oi_ratio:.2f}")
    print(f"Max pain: {chain.max_pain()}")

All 14 Providers:

Provider Data Type Purpose Dependency
PolymarketProvider Prediction market contracts Event probability pricing stdlib
KalshiProvider Binary contracts US regulated event contracts stdlib
YahooPriceProvider Price history Stocks/ETFs/FX/Commodities yfinance
DeribitProvider Crypto derivatives Futures term structure, options IV stdlib
USTreasuryProvider Treasury yields Yield curves, inflation expectations stdlib
WebSearchProvider Web search VIX/MOVE/CDS/BDI supplementary data stdlib
CftcCotProvider Futures positioning Institutional direction (smart money) stdlib
CoinGeckoProvider Crypto spot BTC/ETH price, market cap, dominance stdlib
EdgarProvider SEC filings Insider trades Form 4, filing search stdlib
BisProvider Central bank data Policy rates, credit-to-GDP gap stdlib
WorldBankProvider Development indicators GDP, population, trade, macro data stdlib
YFinanceProvider US options chains IV, Greeks, put/call ratio, max pain yfinance
FearGreedProvider Market sentiment CNN 7-signal composite → 0-100 score stdlib
CMEFedWatchProvider Rate probabilities FOMC rate change implied from futures stdlib

12 out of 14 providers have zero external dependencies and zero API keys. YahooPriceProvider and YFinanceProvider require pip install yfinance.

WebSearchProvider usage:

  • web.search("query") → returns WebSearchResult (search summary) — render with .text()
  • web.fetch_page("url") → returns WebPageContent (page body extraction)
  • Search engine is DuckDuckGo, zero API keys needed

Data not available via structured providers — use web search instead: VIX, MOVE, CDS spreads, TTF natural gas, BDI freight rates, war risk premiums, high-yield OAS — these need to be fetched from financial web pages. They are still trading data and comply with the methodology.

Step 5: Data analysis

This is the key to report quality. Don't just summarize data — derive judgment from data.

Four analysis dimensions:

  1. Signal interpretation: What is each data point saying? Derive meaning from price. Not "gold up 3%" but "the market is pricing in tail risk." e.g., Copper/Gold ratio declining → industrial demand weaker than safe-haven demand → risk-off.

  2. Cross-validation: Which signals point in the same direction (resonance)? Which signals disagree (divergence)? Divergence itself is a high-value signal. e.g., gold says "disaster" but equities say "fine" → two markets pricing different time windows.

  3. Time alignment: Group signals by their pricing horizon. Don't mix signals from different time windows in the same vote.

    • Short-term (3-12mo): Prediction market contracts, VIX/MOVE, price reaction patterns, executive selling
    • Medium-term (1-3yr): Leader revenue consensus, CapEx plans, VC concentration, leverage concentration
    • Long-term (3-10yr): Equipment maker orders, irreversible capital allocation, ultra-long infrastructure investment
    • Short-term bearish + long-term bullish ≠ contradiction, = S-curve inflection
  4. Weight judgment: Not all signals are equally reliable. Signals backed by real money > surveys. Liquid markets > illiquid markets. Direct pricing > indirect proxies. e.g., Polymarket high-liquidity contract > CDS quotes (slow updates, low liquidity).

Core principle: Don't vote by majority. When signals diverge:

  • Check the time dimension first — different signals price different future windows
  • Look for "two things happening at once" — old economy Japanification + new economy boom can coexist
  • Consider "direction right but timing wrong" — long-term bullish but short-term overheated → wait for a pullback

Step 6: Output report

Must follow this structure. You can adjust the number of layers and wording, but the four main sections (data summary, analysis, probability estimates, conclusion) cannot be omitted or merged into prose paragraphs:

# [Question Title]: Multi-Signal Synthesis

## Data Summary

### Layer 1: [Most direct signal source]
| Signal | Data | What it's saying |
|--------|------|-----------------|
(table, one signal per row, third column is reasoning from price to meaning)

### Layer 2: [Secondary signal source]
(same format)

### Layer N: ...
(as needed, typically 3-5 layers)

## Analysis

### Resonance signals
(which signals point in the same direction, and what judgment they form)

### Key divergences
(A says X, B says Y → explain why + who is more credible)

### Time stratification
(what do short-term / medium-term / long-term signals each point to)

## Probability Estimates
| Scenario | Probability | Basis |
|----------|-------------|-------|

### Most likely path: [one-sentence summary]
**Core logic chain:** (2-3 paragraphs, reasoning from data to conclusion)

## Conclusion

> [One-sentence summary, preferably including a specific probability estimate]

### Sub-conclusions
| Dimension | Judgment | Confidence |
|-----------|----------|------------|
| Short-term (6-12mo) | ... | High/Medium/Low |
| Medium-term (1-3yr) | ... | High/Medium/Low |
| Long-term (3-5yr) | ... | High/Medium/Low |
| Systemic risk | ... | High/Medium/Low |
(adjust dimensions to match the question — e.g., replace "systemic risk" with whatever dimension is most relevant)

### Risk factors
- **Upside risk:** what scenario would make things better than expected
- **Downside risk:** what scenario would make things worse than expected

### Signals to monitor
| Signal | Current value | Threshold | Meaning |
|--------|--------------|-----------|---------|
| ... | ... | if crosses X | then Y |
(3-5 concrete signals with specific trigger levels and what they would imply)

---
*Data sources: [list all structured and web data sources]*
*Fetched at: [date]*

Notes

  • Polymarket slug_contains search is fuzzy — filter results by title keywords after fetching
  • YahooPriceProvider uses Yahoo Finance symbols: futures use =F suffix (e.g. GC=F, CL=F, HG=F), forex uses =X suffix (e.g. EURUSD=X), US stocks/ETFs use plain tickers (e.g. SPY, LMT)
  • YahooPriceProvider requires yfinance — install with uv pip install --target .deps yfinance
  • European stocks available on Yahoo Finance with exchange suffix (e.g. RHM.DE for Rheinmetall, BA.L for BAE Systems)
  • Prediction market contracts vary in liquidity — contracts with volume < $100K should be discounted
  • Different signals update at different frequencies: prediction markets real-time, Yahoo Finance daily delayed, Treasury weekly
  • CFTC COT updates Tuesday, published Friday. commodity_name uses uppercase ("GOLD", "CRUDE OIL", "S&P 500")
  • CoinGecko free API has rate limits (~10-30 req/min) — don't pack too many CoinGecko calls in gather
  • EDGAR requires EdgarProvider(user_email="you@example.com") — SEC requires email in User-Agent, otherwise 403. First call parses ticker→CIK mapping, slightly slow
  • BIS data updates infrequently (monthly/quarterly) — suitable for long-term trends, not short-term trading
  • World Bank GDP data typically lags 1-2 years — latest year may return None
  • YFinance requires uv pip install yfinance (auto-installs pandas). After-hours IV may be inaccurate (bid/ask = 0) — use during market hours
  • YFinance get_chain() auto-computes Black-Scholes Greeks (pure stdlib math.erf, no scipy needed)
  • Absolute value of put delta ≈ probability of that strike being ITM at expiration (rough estimate)
  • Put/Call ratio > 1.5 is typically bearish, but as a contrarian indicator, extreme values (> 3) may signal a bottom
  • Max pain is the strike price maximizing market maker profit — actual expiration price often converges toward max pain
  • Kalshi does NOT support keyword search — use series_ticker or event_ticker to filter markets. Find tickers by browsing kalshi.com or listing markets without filters first. Common series: KXFED (Fed rates), KXINX (S&P 500 range), KXGDP (GDP)
  • Deribit futures method is get_futures_term_structure(), not get_futures_curve(). Option chain method is get_option_chain()
  • FearGreedProvider has no API key requirement. Returns a single composite score (0-100) synthesizing 7 market price signals: stock momentum, breadth, VIX, put/call ratio, junk bond demand, volatility, safe haven demand. Score < 25 = Extreme Fear, > 75 = Extreme Greed
  • CMEFedWatchProvider has no API key requirement. Returns implied rate change probabilities for upcoming FOMC meetings, derived from 30-day Fed Funds futures prices. Note: the CME endpoint may occasionally be unavailable or change format — if it fails, fall back to Kalshi KXFED series for rate probabilities
  • When reporting dollar amounts, use USD instead of $ to avoid markdown renderers interpreting $...$ as LaTeX

推荐文章

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

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

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

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

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

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

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

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • digital-oracle
    • Methodology
    • Workflow
      • Step 1: Understand the question
      • Step 2: Select signals
        • Geopolitical conflict / War risk
        • Economic recession / Macro cycle
        • Industry cycle / Bubble assessment
        • Asset pricing / Whether to buy
        • Stock/Options analysis / Crash probability
      • Step 3: Signal routing
      • Step 4: Fetch data
      • Step 5: Data analysis
      • Step 6: Output report
    • 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 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期