> For the complete documentation index, see [llms.txt](https://docs.agilefi.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilefi.org/api/markethistoryservice.md).

# MarketHistoryService

The market history service retrieves historical information about a market. You can use this API to find out the values of interest rates at a certain point in time. Its especially useful for making charts and graphs of the time-series values.

```
// Returns 10 buckets of market data
fetch("https://api.agile.finance/api/market_history/graph?asset=0xf5dce57282a584d2746faf1593d3121fcac444dc&type=1day");
```

{% content-ref url="/pages/t3SmPbN4veXY0ZzV8nK6" %}
[GET: /market\_history/graph](/api/markethistoryservice/get-graph.md)
{% endcontent-ref %}
