get_token_price
Retrieves the current USD price of a token from the PriceFeedRegistry, including the feed's age. Returns an error for unregistered tokens.
Instructions
USD price for a token via the PriceFeedRegistry, with the feed's age. Reverts with PriceFeedNotFound for unregistered tokens, including all Stock Tokens.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"token": "<token>"
},
"name": "get_token_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Token contract address |