crypto_market_overview
Get global cryptocurrency market data including total market capitalization, Bitcoin dominance, and active coin statistics to analyze market trends.
Instructions
Get global crypto market overview (total market cap, BTC dominance, active coins)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/modules/crypto.ts:36-40 (handler)The handler implementation for the 'crypto_market_overview' tool which fetches global crypto market data from the CoinGecko API and formats it for the user.
server.tool("crypto_market_overview", "Get global crypto market overview (total market cap, BTC dominance, active coins)", {}, async () => { const data = await safeFetch("https://api.coingecko.com/api/v3/global"); const g = data.data; return { content: [{ type: "text", text: `**Global Crypto Market**\nTotal Market Cap: ${formatNumber(g.total_market_cap.usd)}\nTotal Volume 24h: ${formatNumber(g.total_volume.usd)}\nBTC Dominance: ${g.market_cap_percentage.btc.toFixed(1)}%\nETH Dominance: ${g.market_cap_percentage.eth.toFixed(1)}%\nActive Coins: ${formatNumber(g.active_cryptocurrencies)}\nMarkets: ${formatNumber(g.markets)}` }] }; });