Documentation for eth_defi.aave_v3.rates.aave_v3_calculate_accrued_interests function.

aave_v3_calculate_accrued_interests(df, start_time, end_time, amount, token='')[source]

Calculate total interest accrued for a given time period. The dataframe must be indexed by timestamp. Returns a tuple with actual start time, actual end time, and total interest accrued for a deposit, variable borrow debt, and stable borrow debt. Actual start time and actual end time are the first and last timestamp in the time period in the DataFrame.

Return type