crypto_price
Get cryptocurrency price, market cap, 24-hour volume, and 7-day sparkline data using CoinGecko IDs to track digital asset performance.
Instructions
Cryptocurrency price, market cap, 24h volume, and 7-day sparkline via CoinGecko.
Args: coin_id: CoinGecko coin ID in lowercase-hyphenated format (e.g. bitcoin, ethereum, solana, chainlink) symbol: Alias for coin_id coin: Alias for coin_id
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin_id | No | ||
| symbol | No | ||
| coin | No |
Implementation Reference
- findata_mcp/server.py:94-107 (handler)The `crypto_price` tool handler implementation in `server.py`. It accepts coin identification, validates it, and calls the underlying client to perform the request.
@mcp.tool() def crypto_price(coin_id: str = "", symbol: str = "", coin: str = "") -> dict[str, Any]: """Cryptocurrency price, market cap, 24h volume, and 7-day sparkline via CoinGecko. Args: coin_id: CoinGecko coin ID in lowercase-hyphenated format (e.g. bitcoin, ethereum, solana, chainlink) symbol: Alias for coin_id coin: Alias for coin_id """ resolved = coin_id or symbol or coin if not resolved: return {"error": "Missing required parameter: provide 'coin_id', 'symbol', or 'coin' (e.g. coin_id='bitcoin')"} return _get_client().call("crypto_price", coin_id=resolved)