> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 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:

1. An idea of what you want to build.
2. An API key from the [Dashboard](https://admin.mobula.io) (only for production use, you can use the API without an API key in development mode).
3. The name of the cryptocurrency asset or its smart-contract address for querying.

***

### Walkthrough:

<Steps>
  <Step title="Prepare Your Query">
    Choose the cryptocurrency asset for your query. If using a smart-contract address, also specify the blockchain.
  </Step>

  <Step title="Execute the API Call">
    Perform the API request using cURL, Axios, or the Mobula SDK (Beta):

    **Using cURL**:

    ```bash theme={null}
    curl --request GET \
    --url 'https://api.mobula.io/api/1/market/history?asset=Floki&from=1697648158'
    ```

    **Using Axios**:

    ```javascript theme={null}
        fetch('https://api.mobula.io/api/1/market/history?asset=Floki&from=1697648158').then(response => response.json())
    .then(response => console.log(response.data))
    .catch(error => console.log(error));
    ```
  </Step>

  <Step title="Review the Response">
    The API will return a detailed history of the asset's price, including timestamps and price values:

    ```json theme={null}
    {
      "data": {
        "price_history": [
          [1624623325000, 1.113340820039224e-9],
          [1624626986000, 2.2957561345049817e-10],
          // Additional data points...
          [1683309600000, 1.7181969777003686e-7]
        ]
      }
    }
    ```
  </Step>
</Steps>

### 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.

<CardGroup>
  <Card title="Support" icon="Telegram" href="https://t.me/mobuladevelopers">
    Telegram
  </Card>

  <Card title="Support" icon="Slack" href="https://join.slack.com/t/mobulaapi/shared_invite/zt-29zrrpjnl-I0tyD73sy7zKy8q~KLL3Ug">
    Slack
  </Card>

  <Card title="Support" icon="Discord" href="https://discord.gg/JVT7xKm3AD">
    Discord
  </Card>

  <Card title="Email Support" icon="envelope" href="mailto:contact@mobulalabs.org">
    Email
  </Card>
</CardGroup>
