Synthdata Volatility Skill
Query and analyze volatility forecasts from Synthdata.co for crypto, commodities, and stock indices.
Setup
Set your API key:
CODEBLOCK0
Quick Start
CODEBLOCK1
Available Assets
| Ticker | Name | Category |
|---|
| BTC | Bitcoin | Crypto |
| ETH |
Ethereum | Crypto |
| SOL | Solana | Crypto |
| XAU | Gold | Commodity |
| SPYX | S&P 500 | Index |
| NVDAX | NVIDIA | Stock |
| GOOGLX | Google | Stock |
| TSLAX | Tesla | Stock |
| AAPLX | Apple | Stock |
Output Example
CODEBLOCK2
Volatility Levels
| Level | Range | Emoji |
|---|
| Low | < 20% | 🟢 |
| Moderate |
20-40% | 🟡 |
| Elevated | 40-60% | 🟠 |
| High | 60-80% | 🔴 |
| Extreme | > 80% | 🔴 |
Use Cases
1. Market Overview
python3 scripts/synth.py --all
Get a ranked table of all assets by volatility.
2. Trading Signals
- - High forecast → Current low: Expect volatility spike
- Low forecast → Current high: Volatility may decrease
- Use for position sizing and options trading
3. Monte Carlo Projections
python3 scripts/synth.py BTC --simulate --hours 24 --paths 1000
Generate probabilistic price ranges using forecast volatility (24h max - Synthdata forecast window).
4. Scheduled Reports
Create a cron job for daily Slack/Telegram forecasts (see examples/use-cases.md).
5. Risk Alerts
Monitor for assets crossing volatility thresholds and trigger notifications.
API Reference
See references/api.md for full API documentation.
Direct API Usage
CODEBLOCK5
Integration Ideas
- - Polymarket: Use volatility forecasts to inform up/down market bets
- Options: High forecast vol = consider buying options
- Portfolio: Rebalance when aggregate volatility spikes
- Alerts: Notify when forecast differs significantly from realized
Synthdata 波动率技能
从 Synthdata.co 查询和分析加密货币、大宗商品和股票指数的波动率预测。
设置
设置您的 API 密钥:
bash
export SYNTHDATAAPIKEY=yourkeyhere
快速开始
bash
单一资产
python3 scripts/synth.py BTC
多资产比较
python3 scripts/synth.py BTC ETH SOL --compare
所有资产概览
python3 scripts/synth.py --all
蒙特卡洛模拟(最长24小时)
python3 scripts/synth.py BTC --simulate --hours 12
可用资产
以太坊 | 加密货币 |
| SOL | Solana | 加密货币 |
| XAU | 黄金 | 大宗商品 |
| SPYX | 标普500 | 指数 |
| NVDAX | 英伟达 | 股票 |
| GOOGLX | 谷歌 | 股票 |
| TSLAX | 特斯拉 | 股票 |
| AAPLX | 苹果 | 股票 |
输出示例
==================================================
BTC — 比特币
==================================================
价格: $77,966
24小时变化: 🔴 -0.95%
当前波动率: 58.4% 🟠 [偏高]
平均已实现波动率:53.3%
预测波动率: 52.2%
波动率水平
20-40% | 🟡 |
| 偏高 | 40-60% | 🟠 |
| 高 | 60-80% | 🔴 |
| 极高 | > 80% | 🔴 |
使用场景
1. 市场概览
bash
python3 scripts/synth.py --all
获取所有资产按波动率排序的排名表。
2. 交易信号
- - 预测高 → 当前低:预期波动率飙升
- 预测低 → 当前高:波动率可能下降
- 用于仓位规模和期权交易
3. 蒙特卡洛预测
bash
python3 scripts/synth.py BTC --simulate --hours 24 --paths 1000
使用预测波动率生成概率价格区间(最长24小时 - Synthdata 预测窗口)。
4. 定期报告
创建 cron 任务用于每日 Slack/Telegram 预测(参见 examples/use-cases.md)。
5. 风险警报
监控资产是否突破波动率阈值并触发通知。
API 参考
完整 API 文档请参见 references/api.md。
直接 API 使用
python
import requests
resp = requests.get(
https://api.synthdata.co/insights/volatility,
params={asset: BTC},
headers={Authorization: fApikey {API_KEY}}
)
data = resp.json()
关键字段:
price = data[current_price]
realized
vol = data[realized][averagevolatility]
forecast
vol = data[forecastfuture][average_volatility]
集成思路
- - Polymarket:利用波动率预测为市场涨跌投注提供参考
- 期权:预测波动率高时考虑买入期权
- 投资组合:当整体波动率飙升时进行再平衡
- 警报:当预测与已实现波动率显著偏离时发送通知