@openfinclaw/findoo-datahub-plugin 2026.3.2 → 2026.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +492 -151
- package/_vendor/claude-skills-finance/SKILL.md +192 -0
- package/_vendor/claude-skills-finance/assets/dcf_analysis_template.md +184 -0
- package/_vendor/claude-skills-finance/assets/expected_output.json +161 -0
- package/_vendor/claude-skills-finance/assets/forecast_report_template.md +177 -0
- package/_vendor/claude-skills-finance/assets/sample_financial_data.json +219 -0
- package/_vendor/claude-skills-finance/assets/variance_report_template.md +122 -0
- package/_vendor/claude-skills-finance/references/financial-ratios-guide.md +396 -0
- package/_vendor/claude-skills-finance/references/forecasting-best-practices.md +294 -0
- package/_vendor/claude-skills-finance/references/valuation-methodology.md +255 -0
- package/_vendor/claude-skills-finance/scripts/budget_variance_analyzer.py +406 -0
- package/_vendor/claude-skills-finance/scripts/dcf_valuation.py +449 -0
- package/_vendor/claude-skills-finance/scripts/forecast_builder.py +494 -0
- package/_vendor/claude-skills-finance/scripts/ratio_calculator.py +432 -0
- package/index.ts +332 -14
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
- package/references/cn-market-specifics.md +165 -0
- package/references/crypto-analysis.md +635 -0
- package/references/financial-ratios-cn.md +452 -0
- package/references/hk-market-specifics.md +166 -0
- package/references/macro-cycle-cn.md +409 -0
- package/references/valuation-cn.md +427 -0
- package/skills/README.md +294 -0
- package/skills/a-concept-cycle/skill.md +200 -0
- package/skills/a-convertible-arb/skill.md +294 -0
- package/skills/a-dividend-king/skill.md +187 -0
- package/skills/a-earnings-season/skill.md +221 -0
- package/skills/a-index-timer/skill.md +192 -0
- package/skills/a-ipo-new/skill.md +297 -0
- package/skills/a-northbound-decoder/skill.md +185 -0
- package/skills/a-quant-board/skill.md +286 -0
- package/skills/a-share/skill.md +347 -0
- package/skills/a-share-radar/skill.md +185 -0
- package/skills/cross-asset/skill.md +202 -0
- package/skills/crypto/skill.md +269 -0
- package/skills/crypto-altseason/skill.md +208 -0
- package/skills/crypto-btc-cycle/skill.md +231 -0
- package/skills/crypto-defi-yield/skill.md +181 -0
- package/skills/crypto-funding-arb/skill.md +158 -0
- package/skills/crypto-stablecoin-flow/skill.md +149 -0
- package/skills/data-query/skill.md +124 -30
- package/skills/derivatives/skill.md +188 -35
- package/skills/etf-fund/skill.md +216 -0
- package/skills/factor-screen/skill.md +186 -0
- package/skills/hk-china-internet/skill.md +190 -0
- package/skills/hk-dividend-harvest/skill.md +192 -0
- package/skills/hk-hsi-pulse/skill.md +154 -0
- package/skills/hk-southbound-alpha/skill.md +163 -0
- package/skills/hk-stock/skill.md +295 -0
- package/skills/macro/skill.md +244 -53
- package/skills/risk-monitor/skill.md +171 -0
- package/skills/us-dividend/skill.md +162 -0
- package/skills/us-earnings/skill.md +149 -0
- package/skills/us-equity/skill.md +235 -0
- package/skills/us-etf/skill.md +261 -0
- package/skills/us-sector-rotation/skill.md +223 -0
- package/src/config.ts +4 -5
- package/src/datahub-client.test.ts +4 -7
- package/src/datahub-client.ts +6 -1
- package/src/register-tools.ts +720 -0
- package/src/tool-helpers.ts +89 -0
- package/test/e2e/l3-gateway-bootstrap.live.test.ts +339 -0
- package/test/e2e/l4-skill-tool-chain.live.test.ts +465 -0
- package/skills/crypto-defi/skill.md +0 -69
- package/skills/equity/skill.md +0 -64
- package/skills/market-radar/skill.md +0 -47
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fin-crypto-altseason
|
|
3
|
+
description: "Crypto altseason timing — BTC dominance trend, Altseason Index (Top 50 vs BTC), ETH/BTC ratio, category rotation radar, capital rotation ladder (BTC→ETH→large ALT→mid-cap→meme). Use when: user asks about altseason, BTC dominance direction, ETH/BTC ratio, altcoin rotation, or 'should I switch from BTC to alts'. NOT for: BTC cycle analysis (use fin-crypto-btc-cycle), single coin lookup (use fin-crypto), DeFi yields (use fin-crypto-defi-yield), funding rate arbitrage (use fin-crypto-funding-arb)."
|
|
4
|
+
metadata: { "openclaw": { "emoji": "🔄", "requires": { "extensions": ["findoo-datahub-plugin"] } } }
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Crypto Altseason Timing
|
|
8
|
+
|
|
9
|
+
BTC dominance is the traffic light for altseason. This skill turns "feels like alts are pumping" into a quantifiable, actionable rotation timing system.
|
|
10
|
+
|
|
11
|
+
> **Scope boundary:** This skill covers BTC→ALT capital rotation timing. For BTC's own halving cycle, use `/fin-crypto-btc-cycle`. For single-coin fundamental analysis, use `/fin-crypto`. For DeFi protocol yields, use `/fin-crypto-defi-yield`.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- "现在是山寨季吗" / "Is it altseason?"
|
|
16
|
+
- "BTC dominance 在下降意味着什么" / "BTC dominance is dropping, what does it mean?"
|
|
17
|
+
- "ETH/BTC 汇率怎么看" / "How is ETH/BTC doing?"
|
|
18
|
+
- "该从 BTC 换到山寨了吗" / "Should I rotate from BTC to alts?"
|
|
19
|
+
- "哪个赛道最近涨得好" / "Which crypto sector is pumping?"
|
|
20
|
+
- "山寨季什么时候结束" / "When does altseason end?"
|
|
21
|
+
- "大盘币 vs 小盘币表现" / "Large cap vs small cap crypto performance"
|
|
22
|
+
|
|
23
|
+
## When NOT to Use
|
|
24
|
+
|
|
25
|
+
- BTC 减半周期 / BTC halving cycle positioning → use `/fin-crypto-btc-cycle`
|
|
26
|
+
- 单币查价 / 协议分析 / CEX 行情 → use `/fin-crypto`
|
|
27
|
+
- DeFi 收益对比 / yield farming → use `/fin-crypto-defi-yield`
|
|
28
|
+
- 资金费率套利 → use `/fin-crypto-funding-arb`
|
|
29
|
+
- 稳定币资金流分析 → use `/fin-crypto-stablecoin-flow`
|
|
30
|
+
- 宏观利率对 crypto 影响 → use `/fin-crypto-macro-bridge`
|
|
31
|
+
- 美股行业轮动 → use `/fin-us-sector-rotation`
|
|
32
|
+
|
|
33
|
+
## Tools & Parameters
|
|
34
|
+
|
|
35
|
+
### fin_crypto — Core data
|
|
36
|
+
|
|
37
|
+
| Parameter | Type | Required | Format | Default | Example |
|
|
38
|
+
| --------- | ------ | -------- | ------------------- | ------- | ----------------- |
|
|
39
|
+
| endpoint | string | Yes | see endpoints below | — | coin/global_stats |
|
|
40
|
+
| symbol | string | Depends | pair / coin ID | — | ETH/BTC |
|
|
41
|
+
| limit | number | No | 1-250 | 100 | 50 |
|
|
42
|
+
|
|
43
|
+
#### Key Endpoints
|
|
44
|
+
|
|
45
|
+
| endpoint | Description | Example |
|
|
46
|
+
| --------------------- | ---------------------------- | -------------------------------------------------------------------- |
|
|
47
|
+
| `coin/global_stats` | BTC dominance (current snap) | `fin_crypto(endpoint="coin/global_stats")` |
|
|
48
|
+
| `coin/market` | Top N coins by market cap | `fin_crypto(endpoint="coin/market", limit=50)` |
|
|
49
|
+
| `coin/categories` | Category/sector 7d% rankings | `fin_crypto(endpoint="coin/categories")` |
|
|
50
|
+
| `coin/trending` | Trending / hot coins | `fin_crypto(endpoint="coin/trending")` |
|
|
51
|
+
| `defi/chains` | Chain-level TVL (ecosystem) | `fin_crypto(endpoint="defi/chains")` |
|
|
52
|
+
| `market/funding_rate` | Funding rate (sentiment) | `fin_crypto(endpoint="market/funding_rate", symbol="ETH/USDT:USDT")` |
|
|
53
|
+
|
|
54
|
+
### fin_data_ohlcv — ETH/BTC K-line
|
|
55
|
+
|
|
56
|
+
| Parameter | Type | Required | Default | Example |
|
|
57
|
+
| --------- | ------ | -------- | ------- | ------- |
|
|
58
|
+
| symbol | string | Yes | — | ETH/BTC |
|
|
59
|
+
| market | string | No | crypto | crypto |
|
|
60
|
+
| timeframe | string | No | 1d | 1d |
|
|
61
|
+
| limit | number | No | 200 | 90 |
|
|
62
|
+
|
|
63
|
+
### Auxiliary Tools
|
|
64
|
+
|
|
65
|
+
| tool | use case |
|
|
66
|
+
| ----------------- | ------------------------------------------------ |
|
|
67
|
+
| `fin_ta` | RSI/SMA/MACD on ETH/BTC for trend confirmation |
|
|
68
|
+
| `fin_data_regime` | BTC regime (bull/bear) as altseason prerequisite |
|
|
69
|
+
|
|
70
|
+
## Altseason Analysis Pattern
|
|
71
|
+
|
|
72
|
+
### 1. BTC Dominance Assessment
|
|
73
|
+
|
|
74
|
+
1. **BTC Dominance snapshot** `fin_crypto(endpoint="coin/global_stats")` — Get current btc_dominance %
|
|
75
|
+
- ⚠️ `coin/global_stats` returns a single snapshot, NOT historical series. To assess trend, compare with known recent values or use BTC market cap / total market cap from `coin/market`
|
|
76
|
+
- 💡 BTC dominance is the single most important altseason indicator
|
|
77
|
+
|
|
78
|
+
2. **BTC + market context** `fin_crypto(endpoint="coin/market", limit=50)` — Top 50 coin performance
|
|
79
|
+
- Calculate: how many of Top 50 (excluding stablecoins) outperformed BTC over 7d/30d
|
|
80
|
+
- ⚠️ This is the Altseason Index calculation basis
|
|
81
|
+
|
|
82
|
+
### 2. Altseason Index (Self-Calculated)
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
Count coins in Top 50 (excluding stablecoins + wrapped tokens) that outperformed BTC in 7d return.
|
|
86
|
+
Altseason Index = outperformers / eligible_count × 100
|
|
87
|
+
|
|
88
|
+
Interpretation:
|
|
89
|
+
> 75% = Altseason confirmed (strong rotation out of BTC)
|
|
90
|
+
50-75% = Transitional (rotation beginning)
|
|
91
|
+
25-50% = Neutral (mixed signals)
|
|
92
|
+
< 25% = Bitcoin Season (BTC dominates, alts lag)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### 3. Rotation Ladder Detection
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
BTC → ETH → Large ALT → Mid-cap ALT → Meme → TOP signal
|
|
99
|
+
|
|
100
|
+
Step 1: fin_data_ohlcv(symbol="ETH/BTC", market="crypto", timeframe="1d", limit=30) → ETH/BTC trend
|
|
101
|
+
Step 2: fin_ta(indicator="rsi", symbol="ETH/BTC", market="crypto") → momentum
|
|
102
|
+
Step 3: fin_crypto(coin/market, limit=50) → stratify by market cap tiers:
|
|
103
|
+
- Tier 1 (>$50B): BTC, ETH
|
|
104
|
+
- Tier 2 ($10-50B): SOL, BNB, XRP, ADA, AVAX, DOT
|
|
105
|
+
- Tier 3 ($1-10B): mid-cap alts
|
|
106
|
+
- Tier 4 (<$1B): small-cap / meme
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Rotation signal progression:
|
|
110
|
+
|
|
111
|
+
- ⚠️ ETH/BTC breaking downtrend + RSI >50 = Rotation from BTC to ETH (Phase 1)
|
|
112
|
+
- ⚠️ Tier 2 avg 7d return > BTC 7d return = Large-cap rotation (Phase 2)
|
|
113
|
+
- ⚠️ Tier 3 avg 7d return > Tier 2 = Mid-cap rotation (Phase 3)
|
|
114
|
+
- ⚠️ Meme category 7d% > +30% = Late-stage euphoria (Phase 4 — caution!)
|
|
115
|
+
- 💡 Cross-validate with funding rate: ETH funding turning positive while BTC funding neutral = capital migrating
|
|
116
|
+
|
|
117
|
+
### 4. Category Rotation Radar
|
|
118
|
+
|
|
119
|
+
1. **Sector rankings** `fin_crypto(endpoint="coin/categories")` — 7d% by category
|
|
120
|
+
- Top 5 categories by 7d performance = current hot sectors
|
|
121
|
+
- ⚠️ If Meme category leads for 2+ consecutive weeks = late-stage warning
|
|
122
|
+
- 💡 Cross-validate with `defi/chains`: if a category's chain TVL is also growing, the rotation has fundamental support
|
|
123
|
+
|
|
124
|
+
2. **Ecosystem validation** `fin_crypto(endpoint="defi/chains")` — Chain-level TVL
|
|
125
|
+
- Rising TVL on alt-L1/L2 chains = capital migration to altcoin ecosystems
|
|
126
|
+
- ⚠️ TVL rising but fees flat (from `defi/fees`) = incentive-driven, not organic
|
|
127
|
+
|
|
128
|
+
### 5. Altseason Health Check (Composite)
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
Combine signals into a composite score (0-5):
|
|
132
|
+
|
|
133
|
+
1. BTC dom trending down (7d) .............. +1
|
|
134
|
+
2. Altseason Index > 50% ................... +1
|
|
135
|
+
3. ETH/BTC in uptrend (above 20d SMA) ...... +1
|
|
136
|
+
4. Top category 7d% > +15% ................. +1
|
|
137
|
+
5. Meme category NOT leading ............... +1
|
|
138
|
+
|
|
139
|
+
Score interpretation:
|
|
140
|
+
5/5 = Strong healthy altseason (rotate aggressively)
|
|
141
|
+
3-4 = Altseason developing (start positioning)
|
|
142
|
+
1-2 = Early / mixed signals (selective, stick to large caps)
|
|
143
|
+
0 = Bitcoin Season (stay in BTC or sidelines)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Signal Quick-Reference
|
|
147
|
+
|
|
148
|
+
### BTC Dominance + BTC Price Matrix
|
|
149
|
+
|
|
150
|
+
| BTC Dominance | BTC Price | Signal | Action |
|
|
151
|
+
| ------------- | --------- | --------------- | ------------------------------------- |
|
|
152
|
+
| dom ↓ | BTC ↑ | Altseason onset | Rotate BTC → ETH → ALT progressively |
|
|
153
|
+
| dom ↓ | BTC ↓ | Panic exit | Risk-off, move to stablecoins |
|
|
154
|
+
| dom ↑ | BTC ↑ | Bitcoin Season | Concentrate in BTC, trim alts |
|
|
155
|
+
| dom ↑ | BTC ↓ | ALT hemorrhage | Worst scenario for alts, full defense |
|
|
156
|
+
|
|
157
|
+
Threshold: dom 7d change > ±0.5% = trend signal; > ±2% = strong signal.
|
|
158
|
+
|
|
159
|
+
### ETH/BTC as Leading Indicator
|
|
160
|
+
|
|
161
|
+
ETH/BTC is the most reliable altseason leading indicator:
|
|
162
|
+
|
|
163
|
+
- Breaking multi-month downtrend = altseason confirmation
|
|
164
|
+
- New 90-day high = altseason acceleration
|
|
165
|
+
- Divergence (ETH/BTC dropping while small alts pump) = unhealthy, likely reversal soon
|
|
166
|
+
|
|
167
|
+
### Altseason End Signals
|
|
168
|
+
|
|
169
|
+
| Signal | Severity | Detection |
|
|
170
|
+
| --------------------------------- | -------- | --------------------------------------- |
|
|
171
|
+
| Meme category 7d% > +50% | High | `coin/categories` — euphoria peak |
|
|
172
|
+
| BTC dom 7d increase > +2% | High | `coin/global_stats` — capital returning |
|
|
173
|
+
| ETH/BTC breaking below 20d SMA | Medium | `fin_ta(sma)` on ETH/BTC |
|
|
174
|
+
| Funding rates > +0.10% on alts | Medium | `market/funding_rate` — crowded longs |
|
|
175
|
+
| Top 50 outperformance drops < 40% | Medium | Altseason Index reversal |
|
|
176
|
+
|
|
177
|
+
## Data Notes
|
|
178
|
+
|
|
179
|
+
- **BTC Dominance**: `coin/global_stats` provides a single current snapshot. There is NO historical dominance API. To track trend, the skill relies on comparing the current value against recent snapshots or computing BTC mcap / total mcap from `coin/market`.
|
|
180
|
+
- **CoinGecko**: ~30 req/min rate limit. `coin/categories` updates daily. Use 7d% for rotation signals.
|
|
181
|
+
- **ETH/BTC OHLCV**: Available via `fin_data_ohlcv(symbol="ETH/BTC", market="crypto")`. Sufficient for trend analysis.
|
|
182
|
+
- **Category data**: CoinGecko categories may not perfectly map to investment themes. Cross-validate with TVL data from `defi/chains`.
|
|
183
|
+
- **Altseason Index**: Self-calculated from `coin/market` Top 50 data. This is a simplified version of the Blockchain Center Altseason Index.
|
|
184
|
+
|
|
185
|
+
## Response Guidelines
|
|
186
|
+
|
|
187
|
+
### Number Formats
|
|
188
|
+
|
|
189
|
+
- BTC dominance: 54.3% (1 decimal)
|
|
190
|
+
- Altseason Index: 68% (integer)
|
|
191
|
+
- ETH/BTC ratio: 0.0542 (4 decimals)
|
|
192
|
+
- Category 7d%: +28.5% / -3.2% (always with +/- sign, 1 decimal)
|
|
193
|
+
- Market cap tiers: $45.2B / $3.8B / $280M (use $B/$M)
|
|
194
|
+
|
|
195
|
+
### Must Include
|
|
196
|
+
|
|
197
|
+
- Data timestamp ("Data as of YYYY-MM-DD")
|
|
198
|
+
- Current BTC dominance with directional context
|
|
199
|
+
- Altseason Index score with interpretation
|
|
200
|
+
- Rotation ladder current phase
|
|
201
|
+
- At least one ⚠️ risk signal assessment
|
|
202
|
+
|
|
203
|
+
### Display Format
|
|
204
|
+
|
|
205
|
+
- Altseason assessment → structured sections: Dominance, Altseason Index, ETH/BTC, Category Top 5, Composite Score, Action
|
|
206
|
+
- Category rotation → ranked table (category, 7d%, market cap, interpretation)
|
|
207
|
+
- ETH/BTC analysis → trend direction + RSI + key levels + historical context
|
|
208
|
+
- Always end with actionable recommendation tied to composite score
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fin-crypto-btc-cycle
|
|
3
|
+
description: "BTC halving cycle analysis — cycle positioning (days since halving, historical comparison), four-phase detection (accumulation/markup/euphoria/decline), multi-signal validation (funding rate + stablecoin flow + regime). Use when: user asks about BTC cycle position, halving impact, bull/bear phase, or cycle-based timing. NOT for: general crypto market overview (use fin-crypto), funding rate arbitrage (use fin-crypto-funding-arb), DeFi yield farming (use fin-crypto-defi-yield), altseason timing (use fin-crypto, BTC Dominance Cycle)."
|
|
4
|
+
metadata: { "openclaw": { "emoji": "🔄", "requires": { "extensions": ["findoo-datahub-plugin"] } } }
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# BTC Halving Cycle Analysis
|
|
8
|
+
|
|
9
|
+
BTC 减半周期定位与阶段判定。减半是加密市场最确定的供应冲击事件,4 年一轮,历史上每次减半后 12-18 个月出现价格高点。
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- "BTC 现在处于什么周期" / "where are we in the BTC cycle"
|
|
14
|
+
- "离减半还有多久" / "when is the next halving"
|
|
15
|
+
- "该抄底吗" / "is it time to buy the dip"
|
|
16
|
+
- "这轮牛市还能涨多久" / "how much longer will this bull run last"
|
|
17
|
+
- "对比历次减半后的表现" / "compare post-halving performance"
|
|
18
|
+
- "BTC 周期到顶了吗" / "has BTC topped this cycle"
|
|
19
|
+
|
|
20
|
+
## When NOT to Use
|
|
21
|
+
|
|
22
|
+
- 加密市场全景概览 (行情/DeFi/赛道) → use `/fin-crypto`
|
|
23
|
+
- 资金费率套利策略 → use `/fin-crypto-funding-arb`
|
|
24
|
+
- DeFi 收益优化 → use `/fin-crypto-defi-yield`
|
|
25
|
+
- 山寨季择时 (BTC dom 轮动) → use `/fin-crypto` (BTC Dominance Cycle pattern)
|
|
26
|
+
- A 股 / 美股 / 港股 → use `/fin-a-share` / `/fin-us-equity` / `/fin-hk-stock`
|
|
27
|
+
- 宏观经济数据 → use `/fin-macro`
|
|
28
|
+
|
|
29
|
+
## Tools & Parameters
|
|
30
|
+
|
|
31
|
+
### fin_crypto — 市场数据
|
|
32
|
+
|
|
33
|
+
| Parameter | Type | Required | Format | Default | Example |
|
|
34
|
+
| ---------- | ------ | -------- | ----------------------- | ------- | --------------- |
|
|
35
|
+
| endpoint | string | Yes | see endpoint table | — | coin/historical |
|
|
36
|
+
| symbol | string | Depends | coin ID or trading pair | — | bitcoin |
|
|
37
|
+
| limit | number | No | 1-250 | 100 | 20 |
|
|
38
|
+
| start_date | string | No | YYYY-MM-DD | — | 2020-01-01 |
|
|
39
|
+
| end_date | string | No | YYYY-MM-DD | — | 2026-03-07 |
|
|
40
|
+
|
|
41
|
+
#### Key Endpoints
|
|
42
|
+
|
|
43
|
+
| endpoint | Description | Example |
|
|
44
|
+
| --------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
45
|
+
| `coin/historical` | BTC historical prices | `fin_crypto(endpoint="coin/historical", symbol="bitcoin", start_date="2020-01-01", end_date="2026-03-07")` |
|
|
46
|
+
| `coin/global_stats` | Total mcap, BTC dom | `fin_crypto(endpoint="coin/global_stats")` |
|
|
47
|
+
| `coin/market` | Top coins by mcap | `fin_crypto(endpoint="coin/market", limit=5)` |
|
|
48
|
+
| `market/funding_rate` | Perpetual funding rate | `fin_crypto(endpoint="market/funding_rate", symbol="BTC/USDT:USDT")` |
|
|
49
|
+
| `defi/stablecoins` | Stablecoin market data | `fin_crypto(endpoint="defi/stablecoins")` |
|
|
50
|
+
|
|
51
|
+
### fin_data_regime — 市场体制检测
|
|
52
|
+
|
|
53
|
+
Returns: bull / bear / sideways / volatile / crisis
|
|
54
|
+
|
|
55
|
+
### fin_ta — 技术指标
|
|
56
|
+
|
|
57
|
+
Indicators: sma, ema, rsi, macd, bbands
|
|
58
|
+
|
|
59
|
+
### fin_macro — 宏观叠加
|
|
60
|
+
|
|
61
|
+
| endpoint | Description | Example |
|
|
62
|
+
| ------------- | ------------------ | ----------------------------------- |
|
|
63
|
+
| `treasury_us` | US Treasury yields | `fin_macro(endpoint="treasury_us")` |
|
|
64
|
+
|
|
65
|
+
## BTC Halving History (Hardcoded Reference)
|
|
66
|
+
|
|
67
|
+
| Halving | Date | Block | Reward | Pre-Halving Price | Cycle Peak | Peak Multiplier | Days to Peak |
|
|
68
|
+
| -------- | ---------- | --------- | ------------ | ----------------- | ----------------- | --------------- | ------------ |
|
|
69
|
+
| #1 | 2012-11-28 | 210,000 | 50→25 | ~$12 | $1,163 (2013-12) | ~97x | ~365 |
|
|
70
|
+
| #2 | 2016-07-09 | 420,000 | 25→12.5 | ~$650 | $19,783 (2017-12) | ~30x | ~525 |
|
|
71
|
+
| #3 | 2020-05-11 | 630,000 | 12.5→6.25 | ~$8,500 | $69,000 (2021-11) | ~8x | ~550 |
|
|
72
|
+
| #4 | 2024-04-20 | 840,000 | 6.25→3.125 | ~$64,000 | TBD | TBD | TBD |
|
|
73
|
+
| #5 (est) | ~2028-04 | 1,050,000 | 3.125→1.5625 | TBD | TBD | TBD | TBD |
|
|
74
|
+
|
|
75
|
+
**Key observation**: Peak multiplier is diminishing (~97x → ~30x → ~8x), cycle duration slightly increasing.
|
|
76
|
+
|
|
77
|
+
## Cycle Analysis Pattern
|
|
78
|
+
|
|
79
|
+
### 1. Cycle Positioning (周期定位)
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
Step 1: 计算当前日期距最近减半 (2024-04-20) 的天数
|
|
83
|
+
days_since_halving = current_date - 2024-04-20
|
|
84
|
+
progress_pct = days_since_halving / (4 * 365) × 100%
|
|
85
|
+
|
|
86
|
+
Step 2: fin_crypto(coin/historical, symbol="bitcoin", start_date=halving_date, end_date=today)
|
|
87
|
+
→ 本轮减半后价格走势
|
|
88
|
+
|
|
89
|
+
Step 3: 历史同期对比
|
|
90
|
+
2012 周期: 减半后 N 天 BTC 价格 vs 最终 peak
|
|
91
|
+
2016 周期: 减半后 N 天 BTC 价格 vs 最终 peak
|
|
92
|
+
2020 周期: 减半后 N 天 BTC 价格 vs 最终 peak
|
|
93
|
+
→ 当前对标哪个周期的同期位置
|
|
94
|
+
|
|
95
|
+
⚠️ Peak multiplier 递减趋势 — 不要简单外推历史涨幅
|
|
96
|
+
💡 2024 周期与 2020 周期的关键差异: ETF 资金流 + 机构参与度 + 宏观利率环境
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 2. Four-Phase Detection (四阶段判定)
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
Phase 1 — 积累期 (Accumulation): 减半前 6M ~ 减半后 6M
|
|
103
|
+
特征: 价格横盘或缓慢上涨, funding rate 低且稳定, 稳定币缓慢流入
|
|
104
|
+
regime: sideways 或 early bull
|
|
105
|
+
|
|
106
|
+
Phase 2 — 上升期 (Markup): 减半后 6M ~ 12M
|
|
107
|
+
特征: 价格趋势性上涨, funding rate 温和正值 (+0.03~0.08%), 稳定币加速流入
|
|
108
|
+
regime: bull
|
|
109
|
+
|
|
110
|
+
Phase 3 — 狂热期 (Euphoria): 减半后 12M ~ 18M
|
|
111
|
+
特征: 价格加速上涨, funding rate 极端正值 (>0.10%), 稳定币增量创新高
|
|
112
|
+
regime: bull (late stage)
|
|
113
|
+
⚠️ 这是历史上最危险的阶段 — 收益最大但距顶部也最近
|
|
114
|
+
|
|
115
|
+
Phase 4 — 衰退期 (Decline): 减半后 18M ~ 48M
|
|
116
|
+
特征: 价格从峰值持续下跌 30-80%, funding rate 持续为负, 稳定币流出
|
|
117
|
+
regime: bear 或 crisis
|
|
118
|
+
|
|
119
|
+
阶段判定逻辑:
|
|
120
|
+
days = days_since_halving
|
|
121
|
+
├─ days < 180 → Phase 1 (积累期)
|
|
122
|
+
├─ 180 ≤ days < 365 → Phase 2 (上升期) — 确认: regime = bull
|
|
123
|
+
├─ 365 ≤ days < 550 → Phase 3 (狂热期) — 确认: funding >0.08% + 稳定币 4w >$2B
|
|
124
|
+
└─ days ≥ 550 → Phase 4 (衰退期) — 确认: 价格距 ATH 跌 >30%
|
|
125
|
+
|
|
126
|
+
⚠️ 天数仅为初始分类, 必须用多维信号交叉验证
|
|
127
|
+
💡 如果天数指向 Phase 3 但 regime = sideways → 周期可能延长 (结构性差异)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### 3. Multi-Signal Validation (多维验证)
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Signal 1 — Price Momentum:
|
|
134
|
+
fin_crypto(coin/historical) → 30d/90d/180d 涨幅
|
|
135
|
+
fin_ta(sma, symbol="BTC/USDT", period=200) → 价格 vs 200 SMA
|
|
136
|
+
├─ 价格 > 200SMA + 30d 涨幅 >20% → bullish momentum
|
|
137
|
+
├─ 价格 > 200SMA + 30d 涨幅 <5% → sideways above trend
|
|
138
|
+
└─ 价格 < 200SMA → bearish structure
|
|
139
|
+
|
|
140
|
+
Signal 2 — Funding Rate Sentiment:
|
|
141
|
+
fin_crypto(market/funding_rate, symbol="BTC/USDT:USDT")
|
|
142
|
+
├─ > +0.10% → 极端多头拥挤 → 清算瀑布风险
|
|
143
|
+
├─ +0.03~+0.10% → 健康牛市 → 趋势延续
|
|
144
|
+
├─ -0.01~+0.03% → 中性 → 无方向信号
|
|
145
|
+
├─ -0.05~-0.01% → 偏空 → 轧空可能
|
|
146
|
+
└─ < -0.05% → 极端恐慌 → 反弹信号
|
|
147
|
+
|
|
148
|
+
Signal 3 — Stablecoin Flow (资金代理):
|
|
149
|
+
fin_crypto(defi/stablecoins) → USDT + USDC 总量 4 周变化
|
|
150
|
+
├─ 4w 增量 > $2B → 强资金流入 (领先 2-4 周)
|
|
151
|
+
├─ 4w 增量 $0 ~ $2B → 温和流入
|
|
152
|
+
├─ 4w 增量 < -$1B → 资金流出防御
|
|
153
|
+
|
|
154
|
+
Signal 4 — Market Regime:
|
|
155
|
+
fin_data_regime(symbol="BTC/USDT", market="crypto")
|
|
156
|
+
→ bull / bear / sideways / volatile / crisis
|
|
157
|
+
|
|
158
|
+
Signal 5 — BTC Dominance:
|
|
159
|
+
fin_crypto(coin/global_stats) → btc_dominance
|
|
160
|
+
├─ dom > 60% → BTC season (风险偏好低, 资金集中)
|
|
161
|
+
├─ 50-60% → 均衡
|
|
162
|
+
└─ dom < 50% → 山寨季 (风险偏好高, 周期后段)
|
|
163
|
+
|
|
164
|
+
Cross-Validation Matrix:
|
|
165
|
+
├─ Phase + Price + Funding + Stablecoin 四维共振 → 高置信度
|
|
166
|
+
├─ 三维共振 → 中等置信度
|
|
167
|
+
├─ 二维或信号矛盾 → 低置信度, 建议等待
|
|
168
|
+
└─ 多个信号指向 Phase 转换 → 重要转折点
|
|
169
|
+
|
|
170
|
+
💡 与 fin_macro(treasury_us) 叠加: 实际利率下行 + 减半后 12M = 历史最佳组合
|
|
171
|
+
⚠️ 宏观逆风 (10Y > 5% + DXY 强势) 可能延迟/压制周期涨幅
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### 4. Cycle Exit Signal Checklist (退出信号清单)
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
Top Signal Detection (判断周期见顶):
|
|
178
|
+
|
|
179
|
+
1. Funding Rate 极端: > +0.15%/8h 持续 3+ 天
|
|
180
|
+
2. 稳定币流出: 4 周增量转负 (资金撤退)
|
|
181
|
+
3. BTC Dom 快速下降: 7d 变化 > -2% (山寨末期疯狂)
|
|
182
|
+
4. Regime 转 volatile/crisis
|
|
183
|
+
5. 价格距 200SMA 偏离 > +100% (极端泡沫)
|
|
184
|
+
6. 减半后天数 > 500 天 (历史顶部区间)
|
|
185
|
+
|
|
186
|
+
评分: 每个信号 1 分, 总分 0-6
|
|
187
|
+
├─ 0-1 → 周期中段, 持有
|
|
188
|
+
├─ 2-3 → 周期后段, 开始减仓
|
|
189
|
+
├─ 4-5 → 高危区域, 大幅减仓
|
|
190
|
+
└─ 6 → 极端信号, 建议只保留核心仓位
|
|
191
|
+
|
|
192
|
+
⚠️ 历史上没有一次见顶时全部 6 个信号同时亮起 — 通常 4 个就足够警惕
|
|
193
|
+
💡 "This time is different" 永远是最危险的想法
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## Data Notes
|
|
197
|
+
|
|
198
|
+
- **CoinGecko**: 免费 API ~30 req/min 速率限制; `coin/historical` 需传 `start_date`/`end_date`
|
|
199
|
+
- **减半日期**: 硬编码 (2012.11.28 / 2016.07.09 / 2020.05.11 / 2024.04.20),误差 <1 天
|
|
200
|
+
- **链上指标**: MVRV / NUPL / 交易所余额 / Hash Ribbon 等链上估值指标 DataHub 不覆盖,需 Glassnode/CryptoQuant; 本 skill 使用 funding rate + stablecoin + regime 作为代理信号
|
|
201
|
+
- **DefiLlama**: 无认证,稳定币数据约 10 分钟刷新
|
|
202
|
+
- **BTC Dominance**: `coin/global_stats` 仅返回当前快照,无历史时序; 趋势判断需定期记录
|
|
203
|
+
- **历史周期数据**: 基于 CoinGecko 历史价格 + 硬编码减半日期回溯计算
|
|
204
|
+
|
|
205
|
+
## Response Guidelines
|
|
206
|
+
|
|
207
|
+
### 数字格式
|
|
208
|
+
|
|
209
|
+
- BTC 价格: $67,432 (到个位, 千位逗号)
|
|
210
|
+
- 天数: "距减半已过 701 天" / "距下次减半约 730 天"
|
|
211
|
+
- 涨幅: +320% / -65% (始终带 +/- 符号)
|
|
212
|
+
- 倍数: 8.1x (1 位小数)
|
|
213
|
+
- Funding rate: +0.08%/8h (明确标注 per 8h)
|
|
214
|
+
- 稳定币: $168B / 4 周增量 +$3.2B
|
|
215
|
+
- Dominance: 52.3%
|
|
216
|
+
|
|
217
|
+
### 必须包含
|
|
218
|
+
|
|
219
|
+
- 当前距减半天数 + 周期阶段判定
|
|
220
|
+
- 历史同期对比 (至少 2012/2016/2020 三个周期)
|
|
221
|
+
- Peak multiplier 递减趋势提醒 (不要让用户盲目外推)
|
|
222
|
+
- 多维信号验证结果 (不能只看天数)
|
|
223
|
+
- 退出信号清单当前亮灯数
|
|
224
|
+
|
|
225
|
+
### 展示方式
|
|
226
|
+
|
|
227
|
+
- 周期定位 → 进度条式描述 ("减半后第 23/48 个月, 进度 48%")
|
|
228
|
+
- 历史对比 → 表格 (columns: 周期/减半后N天价格/涨幅/最终峰值/峰值倍数)
|
|
229
|
+
- 多维信号 → 逐一列出 + 方向 + 综合结论
|
|
230
|
+
- 退出信号 → checklist 格式 (亮/灭 + 当前值)
|
|
231
|
+
- 始终给出 "当前最可能的阶段" + "置信度" + "需要关注的转折信号"
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fin-crypto-defi-yield
|
|
3
|
+
description: "DeFi yield analysis — yield farming opportunities, protocol safety scoring, TVL trend verification, risk-adjusted return comparison across chains. Use when: user asks about DeFi yields, staking APY, lending rates, protocol safety, yield farming risks, or DeFi vs TradFi returns. NOT for: CEX funding rate arb (use fin-crypto-funding-arb), spot crypto prices (use fin-crypto), macro rates (use fin-macro)."
|
|
4
|
+
metadata: { "openclaw": { "emoji": "🌾", "requires": { "extensions": ["findoo-datahub-plugin"] } } }
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# DeFi Yield Analysis
|
|
8
|
+
|
|
9
|
+
DeFi 收益评估与风险分层 — 跨链 yield 对比、协议安全评分、收益可持续性检测。通过 `fin_crypto` 访问 DefiLlama 全量数据。
|
|
10
|
+
|
|
11
|
+
> **核心理念:** APY 越高不等于越好。DeFi yield = 真实收入 yield + 代币补贴 yield + 风险溢价。本 skill 帮助拆解收益来源,区分"蓝筹固收"和"庞氏高息"。
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- "USDC 哪里利息最高" / "best USDC yield"
|
|
16
|
+
- "Aave 安全吗" / "is Aave safe"
|
|
17
|
+
- "这个 200% APY 靠谱吗" / "is this 200% APY sustainable"
|
|
18
|
+
- "DeFi 理财推荐" / "DeFi yield recommendations"
|
|
19
|
+
- "Arbitrum 上最好的收益" / "best yields on Arbitrum"
|
|
20
|
+
- "DeFi 和银行存款比哪个好" / "DeFi vs bank deposit"
|
|
21
|
+
- "哪个协议 TVL 最高" / "top DeFi protocols by TVL"
|
|
22
|
+
- "Pendle 收益怎么样" / "Pendle yield analysis"
|
|
23
|
+
|
|
24
|
+
## When NOT to Use
|
|
25
|
+
|
|
26
|
+
- CEX 资金费率套利 / funding rate → use `/fin-crypto-funding-arb`
|
|
27
|
+
- 现货价格 / 代币信息 / 市值排名 → use `/fin-crypto`
|
|
28
|
+
- 宏观利率 / GDP / CPI → use `/fin-macro`
|
|
29
|
+
- 期货期权 / 传统衍生品 → use `/fin-derivatives`
|
|
30
|
+
- A 股 / 港股 / 美股 → use `/fin-equity`
|
|
31
|
+
|
|
32
|
+
## Tools & Parameters
|
|
33
|
+
|
|
34
|
+
### fin_crypto — DeFi Data (DefiLlama)
|
|
35
|
+
|
|
36
|
+
| Parameter | Type | Required | Format | Default | Example |
|
|
37
|
+
| --------- | ------ | -------- | ------------------- | ------- | ----------- |
|
|
38
|
+
| endpoint | string | Yes | see endpoints below | — | defi/yields |
|
|
39
|
+
| symbol | string | Depends | protocol slug | — | aave |
|
|
40
|
+
| limit | number | No | 1-250 | 100 | 50 |
|
|
41
|
+
|
|
42
|
+
#### Endpoints
|
|
43
|
+
|
|
44
|
+
| endpoint | Description | Example |
|
|
45
|
+
| ------------------- | --------------------------- | --------------------------------------------------------- |
|
|
46
|
+
| `defi/yields` | Yield farming opportunities | `fin_crypto(endpoint="defi/yields")` |
|
|
47
|
+
| `defi/protocols` | Protocol TVL ranking | `fin_crypto(endpoint="defi/protocols", limit=50)` |
|
|
48
|
+
| `defi/protocol_tvl` | Single protocol TVL history | `fin_crypto(endpoint="defi/protocol_tvl", symbol="aave")` |
|
|
49
|
+
| `defi/fees` | Protocol fees / revenue | `fin_crypto(endpoint="defi/fees")` |
|
|
50
|
+
| `defi/chains` | Blockchain TVL comparison | `fin_crypto(endpoint="defi/chains")` |
|
|
51
|
+
| `defi/stablecoins` | Stablecoin market data | `fin_crypto(endpoint="defi/stablecoins")` |
|
|
52
|
+
| `defi/dex_volumes` | DEX trading volumes | `fin_crypto(endpoint="defi/dex_volumes")` |
|
|
53
|
+
| `coin/info` | Token detail (governance) | `fin_crypto(endpoint="coin/info", symbol="aave")` |
|
|
54
|
+
|
|
55
|
+
## DeFi Yield Analysis Pattern
|
|
56
|
+
|
|
57
|
+
1. **Yield Scan** `fin_crypto(defi/yields)` — 获取全市场 yield farming 机会
|
|
58
|
+
- 按用户指定资产(USDC/ETH/BTC)或链(Ethereum/Arbitrum)过滤
|
|
59
|
+
- ⚠️ 如果 APY >100% 且项目上线 <3 个月 → 高风险警告:可能是代币补贴驱动的短期高息
|
|
60
|
+
- 💡 按 TVL 加权排序比纯 APY 排序更有参考价值
|
|
61
|
+
|
|
62
|
+
2. **Protocol Safety Scoring** `fin_crypto(defi/protocol_tvl, symbol="X")` + `fin_crypto(defi/fees)` — 协议安全评估
|
|
63
|
+
- **TVL 趋势**: protocol_tvl 显示历史 TVL,稳定增长 = 健康;骤降 >20% = 预警
|
|
64
|
+
- **收入真实性**: fees/TVL ratio > 0.1% = 有真实收入支撑;ratio ~0 = 纯代币补贴
|
|
65
|
+
- ⚠️ 如果 TVL 大但 fees 接近 0 → "TVL 可能是激励驱动的虚胖,一旦激励停止将快速流失"
|
|
66
|
+
- ⚠️ 如果 TVL 单周跌幅 >10% → "资金撤离信号,即使 APY 仍高也应规避"
|
|
67
|
+
- 💡 交叉验证:TVL 增长 + fees 增长 = 真实需求增长;TVL 增长 + fees 平 = 激励驱动
|
|
68
|
+
|
|
69
|
+
3. **Risk Tier Classification** — 综合评分
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Tier 1 (Blue-chip): TVL >$1B, 运行 >2 年, fees/TVL >0.1%, 无安全事故
|
|
73
|
+
→ Aave, Compound, MakerDAO, Lido, Curve
|
|
74
|
+
Tier 2 (Established): TVL $100M-$1B, 运行 >1 年, 有审计
|
|
75
|
+
→ Morpho, Pendle, Yearn, Convex
|
|
76
|
+
Tier 3 (Emerging): TVL $10M-$100M, 运行 <1 年
|
|
77
|
+
→ 需逐一评估,APY >50% 需额外审慎
|
|
78
|
+
Tier 4 (High-risk): TVL <$10M 或运行 <3 个月
|
|
79
|
+
→ ⚠️ 极高风险,不建议大额配置
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
4. **Cross-Chain Yield Comparison** `fin_crypto(defi/chains)` — 链级别收益对比
|
|
83
|
+
- 同一协议在不同链上的 yield 差异(如 Aave ETH mainnet vs Arbitrum vs Optimism)
|
|
84
|
+
- ⚠️ L2 上 yield 通常更高(Gas 低 → 小额也划算),但流动性可能更薄
|
|
85
|
+
- 💡 交叉验证链健康度:chain TVL 增长 + bridge 净流入 = 生态向好 = yield 可持续
|
|
86
|
+
|
|
87
|
+
5. **Sustainability Detection** — 收益可持续性判断
|
|
88
|
+
- ⚠️ APY >100% + TVL 下降 = **死亡螺旋预警**(代币价格跌 → APY 虚高 → 资金撤离 → 更跌)
|
|
89
|
+
- ⚠️ APY 大幅波动(7d 方差 >50%) = 不稳定收益,不适合长期配置
|
|
90
|
+
- 💡 APY 5-20% + TVL 上升 + fees 增长 = 蓝筹DeFi最佳信号
|
|
91
|
+
- 💡 对比 US Treasury yield (fin_macro):DeFi yield < Treasury = crypto risk premium 不足
|
|
92
|
+
|
|
93
|
+
6. **DeFi vs TradFi Comparison** — 风险调整后收益对比
|
|
94
|
+
- 💡 切换 `/fin-macro` 查 US Treasury yield 作为无风险基准
|
|
95
|
+
- Spread = DeFi yield - Treasury yield = crypto risk premium
|
|
96
|
+
- ⚠️ 如果 spread < 2% → "承担智能合约风险但几乎没有超额收益,不如直接买国债"
|
|
97
|
+
|
|
98
|
+
## Protocol Safety Quick-Reference
|
|
99
|
+
|
|
100
|
+
### Blue-Chip Protocol Indicators
|
|
101
|
+
|
|
102
|
+
| Metric | Healthy | Warning | Danger |
|
|
103
|
+
| -------- | --------------- | ------------------------- | ------------------------ |
|
|
104
|
+
| TVL | >$1B, stable | $100M-$1B, volatile | <$100M or declining fast |
|
|
105
|
+
| Runtime | >2 years | 1-2 years | <6 months |
|
|
106
|
+
| Fees/TVL | >0.1% | 0.01-0.1% | ~0% (pure incentive) |
|
|
107
|
+
| Security | No incidents | Minor incidents, resolved | Major hack history |
|
|
108
|
+
| Audit | Multiple audits | Single audit | No audit |
|
|
109
|
+
|
|
110
|
+
### Yield Sustainability Signals
|
|
111
|
+
|
|
112
|
+
| Signal | Implication | Confidence |
|
|
113
|
+
| ------------------------------------- | ------------------------------------------- | ---------- |
|
|
114
|
+
| APY 5-20% + TVL rising + fees growing | Sustainable blue-chip | High |
|
|
115
|
+
| APY 20-50% + TVL stable + some fees | Moderate risk, possibly sustainable | Medium |
|
|
116
|
+
| APY 50-100% + TVL flat + low fees | Incentive-driven, monitor closely | Low |
|
|
117
|
+
| APY >100% + TVL declining | Death spiral risk | Very Low |
|
|
118
|
+
| APY spikes suddenly >3x | Likely short-term promotion or manipulation | Very Low |
|
|
119
|
+
|
|
120
|
+
### Common DeFi Risk Categories
|
|
121
|
+
|
|
122
|
+
| Risk Type | Description | Mitigation |
|
|
123
|
+
| --------------------- | ------------------------- | ----------------------------------- |
|
|
124
|
+
| Smart Contract | Code bugs, exploits | Stick to Tier 1-2 protocols |
|
|
125
|
+
| Impermanent Loss (IL) | LP token value divergence | Prefer stablecoin pools |
|
|
126
|
+
| Oracle Manipulation | Price feed attacks | Use protocols with Chainlink |
|
|
127
|
+
| Governance Attack | Malicious proposals | Check governance token distribution |
|
|
128
|
+
| Depeg Risk | Stablecoin loses peg | Diversify across USDC/USDT/DAI |
|
|
129
|
+
|
|
130
|
+
## Stablecoin Yield Matrix
|
|
131
|
+
|
|
132
|
+
> Most common DeFi entry: deposit stablecoins for "fixed income" style returns.
|
|
133
|
+
|
|
134
|
+
| Protocol | Chain | Typical APY | Tier | Notes |
|
|
135
|
+
| --------------- | ---------- | ----------- | ---- | --------------------------------- |
|
|
136
|
+
| Aave V3 | ETH/ARB/OP | 3-8% | 1 | Gold standard, variable rate |
|
|
137
|
+
| Compound V3 | ETH/ARB | 3-6% | 1 | Simple, battle-tested |
|
|
138
|
+
| MakerDAO (sDAI) | ETH | 4-5% | 1 | Backed by RWA + T-bills |
|
|
139
|
+
| Morpho | ETH | 4-10% | 2 | Optimized rates, newer |
|
|
140
|
+
| Pendle (PT) | ETH/ARB | 5-15% | 2 | Fixed-term, maturity date matters |
|
|
141
|
+
|
|
142
|
+
> Note: Rates are illustrative ranges based on typical market conditions; always verify current rates via `defi/yields`.
|
|
143
|
+
|
|
144
|
+
## Data Notes
|
|
145
|
+
|
|
146
|
+
- **DefiLlama**: No auth required, data refreshes ~10 minutes; most comprehensive DeFi data aggregator
|
|
147
|
+
- **Yield Data**: `defi/yields` returns current snapshot; no historical APY time series (track manually)
|
|
148
|
+
- **TVL Accuracy**: TVL counts may differ between protocols' own dashboards and DefiLlama due to methodology
|
|
149
|
+
- **Fees Data**: `defi/fees` covers major protocols; smaller protocols may have incomplete data
|
|
150
|
+
- **IL Calculation**: No built-in impermanent loss calculator; use formula `IL = 2*sqrt(r)/(1+r) - 1` where r = price ratio change
|
|
151
|
+
- **Audit Status**: Not available via API; rely on protocol runtime + TVL as proxy for safety
|
|
152
|
+
- **Gas Costs**: Not included in yield calculation; L2 gas negligible (<$0.05), ETH mainnet can be $5-50 per tx
|
|
153
|
+
|
|
154
|
+
## Response Guidelines
|
|
155
|
+
|
|
156
|
+
### Number Formatting
|
|
157
|
+
|
|
158
|
+
- APY/APR: 1 decimal place (5.2% APY)
|
|
159
|
+
- TVL: $B/$M notation ($12.3B, $450M)
|
|
160
|
+
- Fee revenue: $M/day or $M/year ($2.1M/day)
|
|
161
|
+
- Protocol age: years + months (2y 4m)
|
|
162
|
+
- Gas cost: $ estimate per transaction ($0.02 on Arbitrum, $12 on ETH mainnet)
|
|
163
|
+
- Risk score: use Tier 1-4 classification
|
|
164
|
+
|
|
165
|
+
### Must Include
|
|
166
|
+
|
|
167
|
+
- Risk tier for every protocol mentioned (Tier 1/2/3/4)
|
|
168
|
+
- Net yield estimate (APY - estimated gas cost for typical deposit size)
|
|
169
|
+
- TVL trend direction (growing/stable/declining)
|
|
170
|
+
- Fees/TVL ratio when evaluating sustainability
|
|
171
|
+
- Comparison with at least one benchmark (US Treasury or Aave baseline)
|
|
172
|
+
- Data timestamp ("yield data as of 2026-03-07")
|
|
173
|
+
- Disclaimer: "DeFi yields are variable and carry smart contract risk; past returns do not guarantee future performance"
|
|
174
|
+
|
|
175
|
+
### Display Format
|
|
176
|
+
|
|
177
|
+
- Single protocol deep-dive → structured narrative with safety scorecard
|
|
178
|
+
- Multi-protocol yield comparison → table (columns: protocol / chain / APY / TVL / Tier / fees/TVL)
|
|
179
|
+
- Risk assessment → bullet points with Tier classification
|
|
180
|
+
- Yield recommendation → ranked by risk-adjusted return, not raw APY
|
|
181
|
+
- Always lead with risk tier before mentioning APY
|