curl --request GET \ --url https://api.diadata.org/v1/synthasset/{blockchain}/{protocol}
Copy
Ask AI
{ // Response}
DeFi Data
DeFi Protocols Collateral Information
The endpoint provides information on the health factor of DeFi protocols.
GET
/
v1
/
synthasset
/
{blockchain}
/
{protocol}
DeFi Protocols Collateral Information
Copy
Ask AI
curl --request GET \ --url https://api.diadata.org/v1/synthasset/{blockchain}/{protocol}
Copy
Ask AI
{ // Response}
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:
To receive all asset updates data during the selected period use starttime and endtime filter parameters with timestamps as inputs. Here is an example: