get_recently_updated_tokens
Retrieve recently updated token information for DeFi trading analysis, with optional network filtering to support cross-chain portfolio decisions.
Instructions
Get recently updated tokens with their information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Attributes to include: 'network' (optional) | |
| network | No | Network ID to filter by (optional, e.g., 'eth', 'bsc', 'polygon_pos') |
Implementation Reference
- The underlying API service method that performs the actual HTTP request to CoinGecko's /tokens/info_recently_updated endpoint.
async getRecentlyUpdatedTokens(options = {}) { try { const queryParams = new URLSearchParams(); if (options.include) queryParams.append('include', options.include); if (options.network) queryParams.append('network', options.network); const url = `${this.baseUrl}/tokens/info_recently_updated${queryParams.toString() ? '?' + queryParams.toString() : ''}`; const response = await fetch(url, { headers: { 'x-cg-demo-api-key': this.apiKey } }); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } return await response.json(); } catch (error) { throw new Error(`Failed to get recently updated tokens: ${error.message}`); } }