🔥 Accessing Onchain DEX data
You can now use the Pro-API key (exclusive to any paid plan subscriber) to call onchain DEX data powered by GeckoTerminal.
Notes
- Authentication method for onchain endpoints is exactly same as other endpoints.
- When using the CG Pro API to access onchain DEX data, include the
/onchainendpoint path in the request.
| Authentication Method | Example using Simple Token Price Endpoint |
|---|---|
| Header (cURL) | curl -X GET "<https://pro-api.coingecko.com/api/v3/onchain/simple/networks/eth/token_price/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2>" -H "x-cg-pro-api-key: YOUR_API_KEY" |
| Query String Parameter | https://pro-api.coingecko.com/api/v3/onchain/simple/networks/eth/token_price/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2?x_cg_pro_api_key=YOUR_API_KEY |