GET
/
v1
/
synthasset
/
:blockchain
/
:protocol
curl --request GET \
  --url https://api.diadata.org/v1/synthasset/:blockchain/:protocol
{
    // 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:

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

blockchain
string
required

Ethereum or Avalanche

protocol
string
required

Aave

address
string

Token contract address. You can use either underlying token address or synthetic token to receive the data

starttime
integer

Unix timestamp setting the start of the return array

endtime
integer

Unix timestamp setting the end of the return array

{
    // Response
}