> ## Documentation Index
> Fetch the complete documentation index at: https://www.diadata.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

<Card title="Example query" href="https://api.diadata.org/v1/synthasset/Ethereum/Aave-V2" icon="angle-right" horizontal>
  [https://api.diadata.org/v1/synthasset/Ethereum/Aave-V2](https://api.diadata.org/v1/synthasset/Ethereum/Aave-V2)
</Card>

*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:

<Card title="https://api.diadata.org/v1/synthasset/Avalanche/Aave-V3?address=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" href="https://api.diadata.org/v1/synthasset/Avalanche/Aave-V3?address=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7" icon="angle-right" horizontal />

To receive all asset updates data during the selected period use `starttime` and `endtime` filter parameters with timestamps as inputs. Here is an example:

<Card title="https://api.diadata.org/v1/synthasset/Avalanche/Aave-V3?address=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7\&starttime=1664502770\&endtime=1664531570" href="https://api.diadata.org/v1/synthasset/Avalanche/Aave-V3?address=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7\&starttime=1664502770\&endtime=1664531570" icon="angle-right" horizontal />

## Path Parameters

<ParamField path="blockchain" type="string" required>
  Ethereum or Avalanche
</ParamField>

<ParamField path="protocol" type="string" required>
  Aave
</ParamField>

<ParamField path="address" type="string">
  Token contract address. You can use either underlying token address or
  synthetic token to receive the data
</ParamField>

<ParamField query="starttime" type="integer">
  Unix timestamp setting the start of the return array
</ParamField>

<ParamField query="endtime" type="integer">
  Unix timestamp setting the end of the return array
</ParamField>

<ResponseExample>
  ```json 200: OK theme={"system"}
  {
    // Response
  }
  ```
</ResponseExample>
