CoinGecko API icon

CoinGecko API

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

Get Coin History

AI-generated

Overview

This node operation fetches the historical price data of a specified cryptocurrency from the CoinGecko API. It is useful for users who want to analyze the price trends of a cryptocurrency over a certain number of days. For example, a user can retrieve Bitcoin's price history for the past 7 days to study its market behavior.

Use Case Examples

  1. Retrieve Bitcoin's price history for the last 7 days to analyze market trends.
  2. Fetch historical price data for Ethereum over the past 30 days for investment analysis.

Properties

Name Meaning
Coin ID The identifier of the cryptocurrency for which the price history is requested.
Days The number of days of historical data to retrieve, with options ranging from 1 day to max (all available data).

Output

JSON

  • prices - Array of price points over the specified historical period.
  • market_caps - Array of market capitalization data over the specified historical period.
  • total_volumes - Array of total volume data over the specified historical period.

Dependencies

  • CoinGecko public API

Troubleshooting

  • Ensure the Coin ID is valid and recognized by the CoinGecko API to avoid errors.
  • Verify the 'Days' parameter is set to a supported value to prevent request failures.
  • Handle API rate limits by implementing retry logic or using the 'continue on fail' option in n8n to avoid workflow interruptions.

Links

Discussion