Aave V2

Examples

aave_v2

Reference

async ctc.protocols.aave_v2_utils.async_get_deposits(start_block=None, end_block=None, provider=None)
Parameters
  • start_block (BlockNumberReference | None) –

  • end_block (BlockNumberReference | None) –

  • provider (ProviderSpec) –

Return type

DataFrame

async ctc.protocols.aave_v2_utils.async_get_interest_rates(token, block=None)
Parameters
  • token (Address) –

  • block (BlockNumberReference | None) –

Return type

dict[str, float]

async ctc.protocols.aave_v2_utils.async_get_interest_rates_by_block(token, blocks)
async ctc.protocols.aave_v2_utils.async_get_reserve_data(asset, block=None)
Parameters
  • asset (Address) –

  • block (BlockNumberReference | None) –

Return type

AaveV2ReserveData

async ctc.protocols.aave_v2_utils.async_get_reserve_data_by_block(asset, blocks)
Parameters
  • asset (<class 'str'>) –

  • blocks (Sequence[Union[SupportsRound, str, int, Literal['latest'], Literal['earliest'], Literal['pending']]]) –

Return type

<class ‘aave_v2AaveV2ReserveListData’>

async ctc.protocols.aave_v2_utils.async_get_underlying_asset(pool_token, provider=None)
Parameters
  • pool_token (<class 'str'>) –

  • provider (Union[str, PartialProvider, Provider, NoneType]) –

Return type

<class ‘str’>

async ctc.protocols.aave_v2_utils.async_get_withdrawals(start_block=None, end_block=None, provider=None)
Parameters
  • start_block (BlockNumberReference | None) –

  • end_block (BlockNumberReference | None) –

  • provider (ProviderSpec) –

Return type

DataFrame