get_token_fiat_rate
Fetch a live token-to-fiat spot rate from CoinGecko to price crypto-denominated x402 payment mandates in fiat. Supports USDC, USDT, EURC, ETH and SOL.
Instructions
Fetch a spot token->fiat exchange rate from the CoinGecko public API, e.g. to price a crypto-denominated (x402) mandate in fiat. Supports USDC, USDT, EURC, ETH and SOL. Requires the optional 'oracle' extra (pip install ap2-iso20022[oracle]). Reaches an external service: the returned rate is a live spot price, not a guarantee, and this tool never moves money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_symbol | Yes | Token symbol: USDC, USDT, EURC, ETH or SOL. | |
| fiat_currency | No | Fiat currency code to price in. | USD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||