Actions52
- Get Asset Platforms
- Get Asset Platforms List
- Get Categories
- Get Categories List
- Get Coin by Contract
- Get Coin Categories
- Get Coin Contract
- Get Coin Contract Market Chart
- Get Coin Contract Market Chart Range
- Get Coin History
- Get Coin Info
- Get Coin List
- Get Coin Market Chart
- Get Coin Market Chart Range
- Get Coin OHLC
- Get Coin Price
- Get Coin Status Updates
- Get Coin Tickers
- Get Companies
- Get Derivatives
- Get Derivatives Exchange Info
- Get Derivatives Exchanges
- Get Events
- Get Exchange Info
- Get Exchange List
- Get Exchange Rates
- Get Exchange Status Updates
- Get Exchange Tickers
- Get Exchange Volume Chart
- Get Exchanges List
- Get Finance
- Get Global Data
- Get Global DeFi Data
- Get Indexes
- Get Market Data
- Get Markets
- Get NFT by Contract
- Get NFT Collection Info
- Get NFT List
- Get NFT Market Chart
- Get Status Updates
- Get Supported Currencies
- Get Token Lists
- Get Token Price by Contract
- Get Trending Coins
- Get Trending Search
- Ping
- Search
- Search Coins
- Simple Price
- Simple Supported Currencies
- Simple Token Price
Get Token Price by Contract
AI-generatedOverview
This node operation retrieves the price of a cryptocurrency token by its contract address on a specified asset platform using the CoinGecko API. It is useful for scenarios where users need to get the current price of tokens that are identified by their blockchain contract addresses, such as Ethereum tokens. For example, a user can input the asset platform ID (e.g., 'ethereum'), the token's contract address, and the desired currency to get the token's price in that currency.
Use Case Examples
- Get the price of an Ethereum-based token by providing the Ethereum platform ID, the token's contract address, and the price currency (e.g., USD).
- Retrieve token prices for tokens on other supported asset platforms by specifying the appropriate platform ID and contract address.
Properties
| Name | Meaning |
|---|---|
| Asset Platform ID | The ID of the asset platform where the token contract is deployed (e.g., 'ethereum'). This identifies the blockchain platform for the token. |
| Contract Address | The contract address of the token on the specified asset platform. This uniquely identifies the token. |
| VS Currency | The reference currency in which the token price is requested (e.g., USD, EUR, BTC). |
Output
JSON
json- The JSON response from the CoinGecko API containing the token price data by contract address in the specified currency.
Dependencies
- CoinGecko public API
- No authentication required
Troubleshooting
- If the contract address or asset platform ID is incorrect or unsupported, the API may return an error or empty data. Verify the inputs.
- Network issues or API downtime can cause request failures. Retry or check CoinGecko API status.
- Ensure the VS Currency is supported by CoinGecko; otherwise, the price data may not be returned.
Links
- CoinGecko API Documentation - Official documentation for the CoinGecko API endpoints and parameters.