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 OHLC
AI-generatedOverview
This node operation fetches OHLC (Open, High, Low, Close) data for a specified cryptocurrency from the CoinGecko API. It is useful for users who want to analyze historical price movements of a cryptocurrency over a certain number of days. For example, traders or analysts can use this data to study price trends and make informed decisions.
Use Case Examples
- Retrieve OHLC data for Bitcoin over the past 7 days to analyze its price fluctuations.
- Get OHLC data for Ethereum for the last 30 days to visualize market trends.
Properties
| Name | Meaning |
|---|---|
| Coin ID | The identifier of the cryptocurrency for which OHLC data is requested. For example, 'bitcoin'. |
| Days | The number of days of historical OHLC data to retrieve. Options include 1, 7, 14, 30, 90, 180, 365, or max (maximum available history). |
Output
JSON
json- The OHLC data array containing open, high, low, and close prices for the specified cryptocurrency over the selected 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 one of the supported options to prevent request failures.
- Handle API rate limits by implementing retry logic or reducing request frequency.
- Common error messages include 'Operation not supported' if an invalid operation is selected, or network errors if the API is unreachable.
Links
- CoinGecko API Documentation - Official documentation for the CoinGecko API endpoints and parameters.