CoinGecko API icon

CoinGecko API

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

Get Coin Contract Market Chart

AI-generated

Overview

This node operation fetches the market chart data of a cryptocurrency token identified by its contract address on a specified asset platform. It retrieves historical price data over a defined number of days in a chosen reference currency. This is useful for analyzing the price trends and market behavior of tokens on blockchain platforms, such as Ethereum, by their contract addresses.

Use Case Examples

  1. A user wants to analyze the price trend of a specific Ethereum token over the past 30 days in USD.
  2. A trader needs to visualize the market chart of a token on Binance Smart Chain for the last 7 days in EUR.

Properties

Name Meaning
Asset Platform ID The ID of the asset platform (blockchain) where the token contract is deployed, e.g., 'ethereum'.
Contract Address The contract address of the token to fetch market chart data for.
VS Currency The reference currency in which the price data is requested, e.g., USD, EUR, BTC.
Days The number of days of historical market data to retrieve, e.g., 7, 30, 90, max.

Output

JSON

  • prices - Array of price points over time
  • market_caps - Array of market capitalization data over time
  • total_volumes - Array of total volume data over time

Dependencies

  • CoinGecko public API

Troubleshooting

  • Ensure the Asset Platform ID and Contract Address are correct and correspond to an existing token on the CoinGecko platform.
  • Verify that the VS Currency is supported by CoinGecko (e.g., usd, eur, btc).
  • Check network connectivity to the CoinGecko API endpoint.
  • If the API returns an error, verify the parameters and try again later as the API might have rate limits.

Links

Discussion