get_new_pools
Retrieve newly created liquidity pools across multiple blockchain networks to identify emerging trading opportunities in decentralized finance.
Instructions
Get latest new pools across all networks
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Attributes to include: 'base_token', 'quote_token', 'dex', 'network' (comma-separated) | |
| page | No | Page number for pagination (optional, default: 1) |
Implementation Reference
- Core helper function that performs the HTTP request to CoinGecko's /networks/new_pools endpoint to fetch new pools data.
async getNewPools(options = {}) { try { const queryParams = new URLSearchParams(); if (options.include) queryParams.append('include', options.include); if (options.page) queryParams.append('page', options.page); const url = `${this.baseUrl}/networks/new_pools${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 new pools: ${error.message}`); } }