get https://api.amberdata.com/defi/lending//assets/
This API retrieves information about all of the actions that occurred for a specific asset on the protocol within a certain timespan.
Time Range Limit
The maximum time range (difference between endDate and startDate) is 60 days.
Not specifying startDate and endDate
If the startDate and endDate query parameters are not provided, the API will return the data from the previous 24 hours.
RESPONSE DATA
Understanding Actions in Lending Protocols
There are many different types of actions in lending protocols, as you'll see in the action property for each item of the payload.data
array. The guide below will help you understand the possible actions
Supported Actions Per Protocol
Empty cell indicates no support.
Protocol \ Action Name | Deposit | Withdraw | LiquidationCall | Repay | Borrow | FlashLoan |
---|---|---|---|---|---|---|
aavev2 | X | X | X | X | X | X |
aavev3 | X | X | X | X | X | X |
compoundv2 | X | X | X | X | X | |
makerdao | X | X | X | X | X |
The guide below will help you understand the possible actions.