get_price
Get real-time token prices in USD via CoinGecko.
Tier: Free
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tokens | string | Yes | Comma-separated token symbols (e.g. “ETH,BTC,USDC”) |
Example
"What is the current price of ETH and BNB?"Response
Returns current USD price for each requested token with 24h change percentage.
Implementation
Uses CoinGecko API with 30-second in-memory cache. Resolves symbols to CoinGecko IDs via the shared token config.
Notes
- Requires
COINGECKO_API_KEYenvironment variable - Supports both free and pro CoinGecko API
- Cache TTL: 30 seconds