CoinGecko API icon

CoinGecko API

Accède aux données de cryptomonnaies via l'API CoinGecko - Prix, marchés, historiques

Simple Token Price

AI-generated

Overview

This node interacts with the CoinGecko API to retrieve the simple price of a cryptocurrency token based on its contract address on a specified asset platform. It is useful for users who want to quickly get the current price of a token in a chosen reference currency without needing detailed market data. For example, it can be used to fetch the USD price of an Ethereum-based token by providing the Ethereum platform ID and the token's contract address.

Use Case Examples

  1. Fetch the current USD price of a token on the Ethereum platform by specifying 'ethereum' as the Asset Platform ID and the token's contract address.
  2. Retrieve the price of a token on another blockchain platform by changing the Asset Platform ID and providing the corresponding contract address.

Properties

Name Meaning
Asset Platform ID The ID of the blockchain platform where the token contract is deployed (e.g., 'ethereum'). This is required to identify the platform for the token contract.
Contract Address The contract address of the token on the specified asset platform. This uniquely identifies the token contract.
VS Currency The reference currency in which the token price is requested (e.g., USD, EUR, BTC). This determines the currency for the returned price.

Output

JSON

  • json - The JSON response containing the simple token price data from CoinGecko API, keyed by contract address and currency.

Dependencies

  • CoinGecko public API

Troubleshooting

  • Common issues include invalid or incorrect Asset Platform ID or Contract Address, which will cause the API to return errors or empty data. Verify the platform ID and contract address are correct and supported by CoinGecko.
  • Network or connectivity issues may cause request failures; ensure the node can access the CoinGecko API endpoint.
  • If the API rate limit is exceeded, requests may be throttled or rejected; consider adding delays or handling rate limits in workflows.

Links

Discussion