> 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/agile.js/api-methods/market-history.md).

# Market History

Makes a request to the MarketHistoryService API. The market history service retrieves information about a market. For more details, see the Agile API documentation.

* `options` (object) A JavaScript object of API request parameters.
* `RETURN` (object) Returns the HTTP response body or error.

```
(async function() {
  const sUsdcMarketData = await Agile.api.marketHistory({
    "asset": Agile.util.getAddress(Agile.aUSDC),
    "min_block_timestamp": 1559339900,
    "max_block_timestamp": 1598320674,
    "num_buckets": 10,
  });

  console.log('sUsdcMarketData', sUsdcMarketData); // JavaScript Object
})().catch(console.error);
```
