DefiLlama Pool Yield
/api/v1/defillama/pool/yield
Description
Get historical Annual Percentage Yields (APY) and Total Value Locked (TVL) for a given pool ID parameter.
Method
GET
Source
Database
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
poolId | string | yes | Specifies the pool ID. |
Response Status Codes
Status | Description |
---|---|
200 OK | Success. Returns pool yield. |
400 Bad Request | Missing required parameter. |
Example: Get historical yield for STETH (Lido on Ethereum)
Request
GET /api/v1/defillama/pool/yield?poolId=1d876729-4445-4623-8b6b-c5290db5d100
Response
[
[
"Date",
"Apy",
"Tvl",
"ApyBase",
"ApyReward",
"WeekLoss",
"WeekApyBase"
],
[
"02/11/2022 00:00:00",
"0.360000",
"1245689079",
"0",
"0",
"0",
"0"
],
[
"02/12/2022 00:00:00",
"0.370000",
"1260143574",
"0",
"0",
"0",
"0"
],
[
"02/13/2022 00:00:00",
"0.350000",
"1296979863",
"0",
"0",
"0",
"0"
],
...
]