Skip to main content
ClaudeWave
Skill12k estrellas del repoactualizado today

stablecoin-flow

# ClaudeWave: stablecoin-flow The stablecoin-flow skill analyzes stablecoin supply changes, on-chain minting/burning events, and exchange reserve movements to identify crypto market liquidity shifts and capital rotation timing. Use this when tracking whether new capital is entering or exiting the crypto ecosystem, interpreting USDT/USDC mint events as leading indicators for price movements, and monitoring institutional participation through stablecoin type analysis.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/stablecoin-flow && cp -r /tmp/stablecoin-flow/agent/src/skills/stablecoin-flow ~/.claude/skills/stablecoin-flow
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# Stablecoin Flow Analysis

## Overview

Track stablecoin supply changes, exchange reserve movements, and on-chain velocity to gauge crypto market capital flows. Stablecoins (USDT, USDC, DAI, etc.) are the "dry powder" of crypto — minting signals new capital entering, burning signals capital leaving, and exchange reserve changes reveal buying/selling intent.

## Core Concepts

### 1. Stablecoin Supply as Market Indicator

**Total stablecoin market cap is the single best proxy for crypto market liquidity.**

```python
# Stablecoin supply growth → crypto market liquidity expansion
# Historical correlation: BTC price and total stablecoin supply r > 0.85

stablecoin_supply = {
    "USDT": 140_000_000_000,    # ~$140B (dominant, ~65% share)
    "USDC": 45_000_000_000,     # ~$45B (~20% share)
    "DAI": 5_000_000_000,       # ~$5B (decentralized)
    "FDUSD": 3_000_000_000,     # ~$3B (Binance ecosystem)
    "USDS": 2_000_000_000,      # ~$2B (Sky/MakerDAO)
}
total = sum(stablecoin_supply.values())
```

**Supply change signals:**

| Supply Change (30d) | Interpretation | Signal |
|--------------------|----------------|--------|
| > +5% | Rapid minting, new capital rushing in | Strong bullish |
| +2% to +5% | Steady capital inflow | Bullish |
| 0% to +2% | Stable, no significant new capital | Neutral |
| -2% to 0% | Mild redemptions | Cautious |
| < -2% | Capital exiting crypto ecosystem | Bearish |

### 2. Mint/Burn Event Analysis

**USDT (Tether) minting signals:**
- Tether mints new USDT → deposits to exchanges → precedes buying activity
- Large mints ($500M+) historically precede BTC rallies by 1-7 days
- Minting often happens in batches: "pre-mint to Tether treasury" → later distributed to exchanges

**USDC (Circle) signals:**
- USDC is more regulated and institutional-oriented
- USDC net minting = institutional/TradFi capital entering
- USDC net burning = institutional capital exiting (redeeming for USD)
- USDC/USDT ratio rising = more institutional participation (bullish for market maturity)

```python
def mint_burn_signal(mint_events, burn_events, lookback_days=7):
    """Analyze recent stablecoin mint/burn events."""
    net_mint = sum(e.amount for e in mint_events if e.days_ago <= lookback_days)
    net_burn = sum(e.amount for e in burn_events if e.days_ago <= lookback_days)
    net_flow = net_mint - net_burn

    if net_flow > 1_000_000_000:    # >$1B net mint in 7 days
        return "large_capital_inflow"
    elif net_flow > 500_000_000:
        return "moderate_inflow"
    elif net_flow > 0:
        return "mild_inflow"
    elif net_flow > -500_000_000:
        return "mild_outflow"
    else:
        return "large_capital_outflow"
```

### 3. Exchange Stablecoin Reserves

**Stablecoins on exchanges = "buy power sitting on the sidelines"**

```python
# Exchange stablecoin reserve interpretation
def exchange_reserve_signal(reserve_change_7d_pct, total_reserve_usd):
    """
    Rising exchange stablecoin reserves = buying power accumulating
    Falling exchange stablecoin reserves = capital deployed or withdrawn
    """
    if reserve_change_7d_pct > 5:
        return "buy_power_accumulating"     # Dry powder building up
    elif reserve_change_7d_pct > 2:
        return "mild_accumulation"
    elif reserve_change_7d_pct < -5:
        return "deployed_or_withdrawn"       # Either bought crypto or left exchange
    elif reserve_change_7d_pct < -2:
        return "mild_deployment"
    else:
        return "stable"
```

**Combined with BTC price action:**

| Exchange Stable Reserves | BTC Price Action | Interpretation |
|-------------------------|-----------------|----------------|
| Rising | Rising | Capital inflow + active buying = strong bull |
| Rising | Falling | Capital parking, waiting for bottom = accumulation |
| Falling | Rising | Capital being deployed into BTC = buying pressure |
| Falling | Falling | Capital leaving exchanges entirely = risk-off |

### 4. Stablecoin Dominance

**Stablecoin dominance = total stablecoin market cap / total crypto market cap**

```python
# Stablecoin dominance as a contrarian indicator
stablecoin_dominance = total_stablecoin_mcap / total_crypto_mcap * 100

if stablecoin_dominance > 12:
    signal = "high_cash_allocation"      # Market fearful, lots of cash on sidelines
    contrarian = "bullish"               # Cash will eventually re-enter
elif stablecoin_dominance > 8:
    signal = "moderate_cash"
    contrarian = "neutral"
elif stablecoin_dominance < 5:
    signal = "low_cash_allocation"       # Market fully invested, little dry powder
    contrarian = "bearish"               # No marginal buyers left
```

### 5. On-Chain Stablecoin Velocity

**Velocity = on-chain transfer volume / supply**

High velocity = stablecoins are being actively used (trading, DeFi, payments)
Low velocity = stablecoins are sitting idle (holding, waiting)

```python
def velocity_signal(transfer_volume_7d, supply):
    velocity = transfer_volume_7d / supply
    velocity_annualized = velocity * 52  # Weekly to annual

    if velocity_annualized > 50:
        return "high_activity"     # Very active usage, likely bull market
    elif velocity_annualized > 20:
        return "moderate_activity"
    elif velocity_annualized < 10:
        return "low_activity"      # Stablecoins idle, bear market / accumulation
```

### 6. Chain-Level Stablecoin Distribution

Track where stablecoins are flowing across different blockchains:

| Chain | Primary Stablecoins | What Inflows Signal |
|-------|-------------------|---------------------|
| Ethereum | USDT, USDC, DAI | DeFi activity, institutional usage |
| Tron | USDT (dominant) | OTC trading, emerging market transfers |
| Solana | USDC | High-frequency DeFi, memecoin activity |
| Arbitrum | USDC, USDT | L2 DeFi growth |
| Base | USDC | Coinbase ecosystem growth |
| BSC | USDT, FDUSD | Binance ecosystem, retail trading |

**Cross-chain flow signals:**
- USDT migrating from Tron → Ethereum: capital moving from OTC/P2P to DeFi (more
vibe-tradingSkill

Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158/alpha101/gtja191/academic), options pricing, 77 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 7 data sources (tushare, yfinance, okx, akshare, mootdx, ccxt, futu).

adr-hshareSkill

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

akshareSkill

AKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance.

alpha-zooSkill

Browse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.

ashare-pre-st-filterSkill

A 股 ST/*ST 风险预测框架 — 基于最新中报/三季报或业绩预告/快报,预测下一财年是否会因营收、利润、净资产、分红不达标而被风险警示,并将新浪监管处罚记录作为独立证据面纳入风险等级。仅适用于 A 股,不预测财务造假。

asset-allocationSkill

Asset allocation theory and optimizer usage — MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 4 optimizers and rebalancing rules.

backtest-diagnoseSkill

Diagnose failed or underperforming backtests, locate the root cause, and fix the issue

behavioral-financeSkill

Behavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies.