Actions13
Get Historical Price
AI-generatedOverview
This node operation retrieves the historical price of Bitcoin in a specified currency at a given Unix timestamp. It is useful for scenarios where users want to analyze Bitcoin price trends over time or fetch past price data for financial analysis, reporting, or integration into other workflows.
Use Case Examples
- Fetch the historical Bitcoin price in USD for a specific date using a Unix timestamp.
- Retrieve Bitcoin price in EUR at a past timestamp for comparison with current prices.
Properties
| Name | Meaning |
|---|---|
| Currency | The currency in which the historical Bitcoin price is requested. Options include USD, EUR, GBP, CAD, CHF, AUD, and JPY. |
| Timestamp | Optional Unix timestamp to specify the exact historical time for which the Bitcoin price is requested. |
Output
JSON
price- The historical Bitcoin price data returned by the API, including the price value in the specified currency and timestamp.
Dependencies
- Requires internet access to call the Mempool.space API endpoint for historical Bitcoin prices.
Troubleshooting
- If the timestamp is invalid or not provided, the API may return the current price or an error; ensure the timestamp is a valid Unix timestamp.
- Network or API errors may occur if the Mempool.space API is unreachable; check internet connectivity and API status.
- If an unsupported currency is selected, the API may not return valid data; use one of the supported currency options.
Links
- Mempool.space API - Historical Price Endpoint - Official API documentation for retrieving historical Bitcoin price data.