★ ★ ★LIVE97 COINS ANALYZED BY CLAUDE MCP·VIEW SKILLS →★ ★ ★
MCP
claude.analyze("BTCUSDT")→ [buy] signal detectedmcp.draw_levels(resistance=98000)→ [drawn] on chartclaude.scan_watchlist(coins=100)→ [42] buy signals foundmcp.connect("tradingview")→ [connected] daily TFclaude.detect_sr("SOLUSDT")→ [S: $165] [R: $185]claude.analyze("ETHUSDT")→ [neutral] consolidatingmcp.screenshot_chart("BNBUSDT")→ [captured] analyzing...claude.score_quality("XRPUSDT")→ score: 78/100mcp.set_timeframe("1D")→ [ok] chart updatedclaude.analyze("BTCUSDT")→ [buy] signal detectedmcp.draw_levels(resistance=98000)→ [drawn] on chartclaude.scan_watchlist(coins=100)→ [42] buy signals foundmcp.connect("tradingview")→ [connected] daily TFclaude.detect_sr("SOLUSDT")→ [S: $165] [R: $185]claude.analyze("ETHUSDT")→ [neutral] consolidatingmcp.screenshot_chart("BNBUSDT")→ [captured] analyzing...claude.score_quality("XRPUSDT")→ score: 78/100mcp.set_timeframe("1D")→ [ok] chart updated
BACK TO CLAUDE SKILLS

fetch_ohlcv_coingecko

Data PipelineDataCoinGecko
INSTALLATION
$python -c "exec(open('fetch_ohlcv_coingecko.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]

Fetches OHLCV candle data from the CoinGecko public API v3 for any coin by its CoinGecko ID (e.g. `bitcoin`, `ethereum`, `solana`). The response contains [timestamp, open, high, low, close] arrays which the function unpacks into a clean dictionary keyed by OHLCV field name.

The CoinGecko free API allows up to 365 days of daily OHLCV data without authentication. Rate limits apply — if scanning more than 50 coins in rapid succession, add a `time.sleep(1)` between calls or use the paid API tier with higher rate limits. The candle data matches TradingView's daily bars when using the same exchange as the data source.

[ USAGE EXAMPLE ]
example.py
data = fetch_ohlcv("bitcoin", days=365)
close = data["close"]   # list of 365 daily closing prices
rsi   = calc_rsi(close)
[ FULL CODE ]
fetch_ohlcv_coingecko.py
def fetch_ohlcv(coin_id: str, days=365): url = f"https://api.coingecko.com/api/v3/coins/{coin_id}/ohlc?vs_currency=usd&days={days}" data = requests.get(url).json() return {"open":[d[1] for d in data], "high":[d[2] for d in data], "low":[d[3] for d in data], "close":[d[4] for d in data]}
[ METADATA ]
CategoryData Pipeline
ComplexityIntermediate
LanguagePython 3.10+
TagsData, CoinGecko
[ ASK CLAUDE ]

Ask AI about this skill before installing it.

[ RELATED SKILLS ]