✍️ Best Practices
Wonder how to use different endpoints together? This is the perfect place for you
User Journey for CoinGecko API Endpoints
"Discovery/Navigational Endpoints"
Examples:
- /coins/list - can be used to query all the supported coins on CoinGecko with names, symbols and coin IDs that can be used in other endpoints
- /search/trending - can be used to query trending search coins, categories and nfts on CoinGecko
"Supporting Endpoints"
Examples:
- /simple/supported_vs_currencies - can be used to query the list of currencies for other endpoints that include parameters like
vs_currencies
, allowing to obtain the corresponding data for those currencies - /asset_platforms - can be used to query the list of asset platforms for other endpoints that contain parameters like
id
orids
(asset platforms), allowing the retrieval of corresponding data for these asset platforms
"Data Endpoints"
Examples:
- /simple/price - can be used to query the prices of coins using the unique coin IDs that can be obtained from the "discovery endpoints" mentioned above
- /coins/{id} - can be used to query the coin data using the unique coin IDs that can be obtained from the "discovery endpoints" mentioned above
User Journey for CoinGecko Onchain DEX API Endpoints
"Discovery/Navigational Endpoints"
Examples:
- /onchain/trending_pools - can be used to query trending pools across all networks on GeckoTerminal
- /onchain/search/pools - can be used to search for any pools on GeckoTerminal
"Supporting Endpoints"
Examples:
- /onchain/networks - can be used to query all the supported networks on GeckoTerminal
- /onchain/networks/{network}/dexes - can be used to query all the supported decentralized exchanges (dexes) on GeckoTerminal based on network id that can be obtained from the endpoint mentioned above
"Data Endpoints"
Examples:
- /onchain/simple/networks/{network}/token_price/{addresses} - can be used to query any token price using the token address and network id that can be obtained from the "discovery endpoints" and "supporting endpoints" mentioned above
- /onchain/networks/{network}/pools/{address} - can be used to query the data of a specific pool based on the pool address and network id that can be obtained from the "discovery endpoints" and "supporting endpoints" mentioned above
Updated 4 months ago