Skip to main content
GET
Lending Asset Summary Metrics

Authorizations

x-api-key
string
header
default:API_KEY
required

Headers

x-amberdata-blockchain-id
enum<string>

[Optional] The id of the blockchain for which you want data from. Defaults to ethereum-mainnet if not specified. Use the Information Protocols API to view the supported protocol and blockchain id combinations.

Available options:
ethereum-mainnet,
avalanche-mainnet,
arbitrum-mainnet,
optimism-mainnet

Path Parameters

protocolId
enum<string>
default:aavev3
required
Available options:
aavev2,
aavev3,
compoundv2,
makerdao
assetId
string
default:WETH
required

[Examples] USDC | WETH. The requested asset must exist on the specified protocol.

Query Parameters

startDate
string<date-time>

[Optional] Payload only includes data after this date (inclusive).
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string<date-time>

[Optional] Payload only includes data before this date (exclusive).
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

timeFormat
enum<string>
default:hr

[Optional] Time format of the timestamps in the return payload.

Available options:
milliseconds,
ms,
iso,
iso8601,
hr,
human_readable
market
string

[Optional] Applies only when protocolId = makerdao. Get only the aggregate data for the specific asset market.

Response

200 - application/json

200

status
integer
Example:

200

title
string
Example:

"OK"

description
string
Example:

"Successful request"

payload
object