BACK TO CLAUDE SKILLS
◈
fetch_top100_coingecko
Data PipelineDataCoinGecko
INSTALLATION
$python -c "exec(open('fetch_top100_coingecko.py').read())"
#or paste directly into your Claude Code terminal
[ ABOUT ]
Retrieves the top 100 cryptocurrencies sorted by market capitalization from CoinGecko's markets endpoint. Returns a list of coin dictionaries containing market cap rank, current price, 24-hour price change, image URL, and coin ID — all fields used by the MCPTrade coin_analysis Supabase table.
Market cap ordering is dynamic — coins move in and out of the top 100 daily. Run this function at the start of each batch analysis session to get a fresh list before fetching individual OHLCV data. The `coin_id` field in each result maps directly to the `coin_id` parameter accepted by `fetch_ohlcv_coingecko`.
[ USAGE EXAMPLE ]
[ FULL CODE ]
[ METADATA ]
CategoryData Pipeline
ComplexityIntermediate
LanguagePython 3.10+
TagsData, CoinGecko
[ ASK CLAUDE ]
Ask AI about this skill before installing it.