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 Coin History
AI-generatedOverview
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
- Retrieve Bitcoin's price history for the last 7 days to analyze market trends.
- 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
- CoinGecko API Documentation - Official documentation for the CoinGecko API endpoints and parameters.