Get APR history - Wallet & Data API
Get APR history - Proxy APR history for lending/borrowing from Data Access Layer.
Get APR History - [Value: 33400CU]
Proxy APR history for lending/borrowing from Data Access Layer.
POST https://lb.drpc.live/lambda/{key}/v1/protocols/apr/history
Use cases
- Retrieve historical APR data for DeFi protocols
- Analyze yield trends over time
Constraints
- Only supported protocols and assets are returned
- Historical data may be limited for older timestamps
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/lambda/{key}/v1/protocols/apr/history \
--header 'accept: application/json'Response
200
{
"data": [
{
"chain": "string",
"protocol": "string",
"pool_id": "string",
"asset": "string",
"start_date": 0,
"end_date": 0,
"APRs": [
{
"type": "string",
"reward_token_address": "string",
"points": [
{
"timestamp": 0,
"value": 0
}
]
}
]
}
]
}Path params
keystring
[Required] Your dRPC API key
Query params
Request params
array of objects
requestsarray_of_objects
[Required] List of APR history requests
array of objects
chainstring
[Required] Chain name (e.g., ethereum)
protocolstring
Protocol identifier (enum, 39 available values)
pool_idstring
Pool identifier
assetstring
Asset address
start_dateinteger
[≥ 0] Start timestamp in milliseconds
end_dateinteger
[≥ 0] End timestamp in milliseconds
Response
200
Response params
object
dataarray_of_objects
[Required] APR history data
object
chainstring
[Required] Chain name (e.g., ethereum)
protocolstring
[Required] Protocol identifier (e.g., aave_v3)
pool_idstring
[Required] Pool identifier
assetstring
Asset address
start_dateinteger
[Required] Start timestamp in milliseconds
end_dateinteger
[Required] End timestamp in milliseconds
APRsarray_of_objects
[Required] APR series for the requested asset
object
typestring
[Required] APR type (e.g., Supply interest, Borrow fees)
reward_token_addressstring
Reward token address
pointsarray_of_objects
[Required] APR values over time
object
timestampinteger
[Required] Timestamp in milliseconds
valuenumber
APR value at the timestamp, defaults to 0