Creates a new GeckoTerminal API client
Network identifier (defaults to cfx)
Optional
apiKey: stringOptional API key for authenticated requests
Optional
customBaseUrl: stringOptional custom base URL for the API
Get information about multiple pools
Network identifier (defaults to constructor network)
Array of pool addresses
Promise with information about multiple pools
Get information about multiple tokens
Network identifier (defaults to constructor network)
Array of token addresses (max 30)
Promise with information about multiple tokens
Get all DEXes for a specific network
Network identifier (defaults to constructor network)
Page number for pagination (starts at 1)
Promise with array of DEXes and pagination metadata
Get all networks supported by GeckoTerminal
Page number for pagination (starts at 1)
Promise with array of networks and pagination metadata
Get new pools for a specific network
Network identifier (defaults to constructor network)
Page number for pagination (starts at 1)
Promise with array of new pools and pagination metadata
Get information about a specific pool
Network identifier (defaults to constructor network)
Address of the pool
Promise with detailed pool information
Get OHLCV data for a specific pool
Network identifier (defaults to constructor network)
Address of the pool
Timeframe for OHLCV data
Additional parameters for the request
Promise with OHLCV data
Get token info for pool tokens
Network identifier (defaults to constructor network)
Address of the pool
Promise with detailed token information
Get trades for a specific pool
Network identifier (defaults to constructor network)
Address of the pool
Optional
minVolumeUsd: numberMinimum trade volume in USD
Promise with pool trades
Get information about tokens that were recently updated
Page number for pagination (starts at 1)
Promise with array of recently updated token information
Get simple token prices
Network identifier (defaults to constructor network)
Array of token addresses (max 30)
Whether to include 24h volume
Whether to include market cap
Promise with token prices
Get information about a specific token
Network identifier (defaults to constructor network)
Address of the token
Promise with token information
Get pools for a specific token
Network identifier (defaults to constructor network)
Address of the token
Page number for pagination (starts at 1)
Promise with token pools
Get token info for pool tokens
Network identifier (defaults to constructor network)
Address of the token
Promise with detailed token information
Get top pools for a specific network and DEX
Network identifier (defaults to constructor network)
DEX identifier (defaults to DEFAULT_DEX)
Page number for pagination (starts at 1)
Promise with array of pools and pagination metadata
Get trending pools for a specific network
Network identifier (defaults to constructor network)
Time duration for trending calculation
Page number for pagination (starts at 1)
Promise with array of trending pools and pagination metadata
Search for pools
Search query (pool address, token address, or token symbol)
Optional
network: stringNetwork identifier (optional)
Page number for pagination (starts at 1)
Promise with search results
GeckoTerminal API client Provides methods to interact with GeckoTerminal's API endpoints
Remarks
This is the main class for interacting with the GeckoTerminal API. It provides typed methods for all API endpoints and handles authentication and request formatting.
Example