get_current_prices
Retrieve the current prices of crypto tokens by contract address using chain-specific and Coingecko identifiers. Specify a time range to ensure accurate and up-to-date price data.
Instructions
GET /coins/prices/current/{coins}
Get current prices of tokens by contract address.
Parameters:
coins: comma-separated tokens in format {chain}:{address} (e.g., 'ethereum:0xdF574c24545E5FfEcb9a659c229253D4111d87e1,coingecko:ethereum')
search_width: time range on either side to find price data (default: '6h')
Input Schema
Name | Required | Description | Default |
---|---|---|---|
coins | Yes | ||
search_width | No | 6h |
Input Schema (JSON Schema)
{
"properties": {
"coins": {
"title": "Coins",
"type": "string"
},
"search_width": {
"default": "6h",
"title": "Search Width",
"type": "string"
}
},
"required": [
"coins"
],
"title": "get_current_pricesArguments",
"type": "object"
}