DeFi Protocols Collateral Information
The endpoint provides information on the health factor of DeFi protocols.
It takes into consideration outstanding loans, contracts’ balance and compares it to synthetic token issuance. This helps to make sure that all assets are fully collateralized.
Currently only Aave V2 and Aave V3 are supported on Ethereum and Avalanche blockchains.
It is possible to receive collateral information for a single token by using token filter as in example below:
https://api.diadata.org/v1/synthasset/Avalanche/Aave-V3?address=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7
To receive all asset updates data during the selected period use starttime
and endtime
filter parameters with timestamps as inputs. Here is an example:
https://api.diadata.org/v1/synthasset/Avalanche/Aave-V3?address=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7\&starttime=1664502770\&endtime=1664531570
Path Parameters
Ethereum or Avalanche
Aave
Token contract address. You can use either underlying token address or synthetic token to receive the data
Unix timestamp setting the start of the return array
Unix timestamp setting the end of the return array