---
title: "GET /markets/history"
method: GET
path: "/markets/history"
tags: ["markets"]
---

# GET /markets/history

`GET /markets/history`

Fetch an array of daily snapshots of supply and borrow totals and supply and borrow apy over the previous 365 days for a given asset.

## Query parameters

- `asset` string, required
- `chainId` string, required
- `period` 'year' | 'month' | 'halfyear'

## Response `200`

Returns historical data for the requested asset.

- object
  - `result` object, required
    - `asset` string, required
    - `updatedAt` string, required
    - `data` object[], required
      - `blockNumber` integer, required
      - `blockTimestamp` integer, required
      - `supplyApy` string, required
      - `borrowApy` string, required
      - `totalSupplyUsd` string, required
      - `totalBorrowUsd` string, required

## Other responses

- `400` — Unexpected error

---

[API](https://skmtc.net/venus/apis/venus-protocol-api.md) · [All operations](https://skmtc.net/venus/apis/venus-protocol-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/venus/venus-protocol-api/revisions/742e86bc3ab0/schema)
