Guides
Get price history of an asset
Discover how to retrieve the historical price data of any cryptocurrency using the Mobula API. This guide offers a step-by-step walkthrough for accessing past price records, providing valuable insights into cryptocurrency market trends.
What You’ll Need:
- An idea of what you want to build.
- An API key from the Dashboard (only for production use, you can use the API without an API key in development mode).
- The name of the cryptocurrency asset or its smart-contract address for querying.
Walkthrough:
1
Prepare Your Query
Choose the cryptocurrency asset for your query. If using a smart-contract address, also specify the blockchain.
2
Execute the API Call
Perform the API request using cURL, Axios, or the Mobula SDK (Beta):
Using cURL:
Using Axios:
Using Mobula SDK (Beta):
3
Review the Response
The API will return a detailed history of the asset’s price, including timestamps and price values:
Extending Your Insights
With the historical price data, you can:
- Analyze Market Trends: Track the asset’s price fluctuations over time.
- Assess Investment Opportunities: Gain insights into potential investment decisions based on past price movements.
- Enhance Financial Models: Integrate this data into financial models for more comprehensive analysis.
Need Assistance?
Our support team is ready to assist with any queries or integration challenges.