Get Historical Data
AI-generatedOverview
This node retrieves historical data of the Fear & Greed Index from the Alternative.me API, which is used to analyze the sentiment of the cryptocurrency market. It is beneficial for users who want to track market sentiment trends over time, such as traders or analysts looking to make informed decisions based on historical fear and greed levels. For example, a user can fetch the last 30 days of historical data to observe how market sentiment has evolved.
Use Case Examples
- Fetch the last 10 historical Fear & Greed Index entries in JSON format to analyze recent market sentiment.
- Retrieve 50 days of historical data in CSV format for detailed analysis or reporting.
Properties
| Name | Meaning |
|---|---|
| Limit | Number of historical data results to return, ranging from 1 to 100. |
| Date Range | The period for which to retrieve historical data, such as 7 days, 30 days, 90 days, 1 year, or maximum available data. |
| Format | Output format of the data, either JSON or CSV. |
Output
JSON
data- ``
*value- The Fear & Greed Index value for each historical entry.
*value_classification- Classification of the index value into categories like Extreme Fear, Fear, Greed, or Extreme Greed.
*timestamp- Timestamp of the data point in Unix time.
*timestamp_formatted- ISO 8601 formatted date string of the timestamp.
- ``
Dependencies
- Alternative.me API endpoint (https://api.alternative.me/fng/)
Troubleshooting
- Common issues include API request failures due to network problems or rate limiting by the Alternative.me API. Ensure the API endpoint is reachable and consider adding retry logic if needed.
- If the node throws errors related to invalid parameters, verify that the 'Limit' is between 1 and 100 and that the 'Date Range' is correctly specified.
- Errors in parsing the response may occur if the API format changes; check for updates in the API documentation.
Links
- Alternative.me Fear & Greed Index - Official site providing the Fear & Greed Index data and API documentation.