---
title: "Calculate historical APY for a lending pool"
method: POST
path: "/historical-apy"
---

# Calculate historical APY for a lending pool

`POST /historical-apy`

Calculate the historical Annual Percentage Yield (APY) for a lending pool without considering liquidity impact.

## Request body

- union
  - object
    - `pool_address` string, required — Address of the pool contract
    - `lp_token_address` string — Address of the LP token contract
    - `chain` string, required — Blockchain network identifier
    - `input_token` string — Address of the input token for APY calculation (auto-selected if not provided)
  - object
    - `pool_address` string — Address of the pool contract
    - `lp_token_address` string, required — Address of the LP token contract
    - `chain` string, required — Blockchain network identifier
    - `input_token` string — Address of the input token for APY calculation (auto-selected if not provided)

## Response `200`

Historical APY calculation response

- object
  - `success` boolean, required
  - `historic_yield` HistoricalAPYResponse, required
    - `apy` number, required — Annual Percentage Yield
    - `network_id` string, required — Blockchain network identifier
    - `pool_address` string — Address of the pool contract
    - `input_token` string — Address of the input token used for APY calculation

---

[API](https://skmtc.net/gluexprotocol/apis/gluex-yield-api.md) · [All operations](https://skmtc.net/gluexprotocol/apis/gluex-yield-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gluexprotocol/gluex-yield-api/versions/fe660f40457e/schema)
