GET
/
v0
/
aave
/
liquidity
/
change
/
get
from compassapisdk import CompassAPISDK, models


with CompassAPISDK(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api_sdk:

    res = compass_api_sdk.aave_v3.liquidity_change(chain=models.AaveLiquidityChangeChain.ARBITRUM_MAINNET, token=models.AaveLiquidityChangeToken.USDC, start_block=0, end_block=319407231)

    # Handle response
    print(res)
{
  "liquidity_change": "<string>",
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:arbitrum:mainnet
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
token
enum<string>
default:USDC
required

A class representing the token.

This class is used to represent the token in the system. Notice individual endpoints' documentation where per chain tokens are presented.

Available options:
1INCH,
AAVE,
BAL,
cbBTC,
cbETH,
CRV,
crvUSD,
DAI,
ENS,
ETHx,
FRAX,
FXS,
GHO,
KNC,
LDO,
LINK,
LUSD,
MKR,
osETH,
PYUSD,
rETH,
RPL,
rsETH,
sDAI,
SNX,
STG,
sUSDe,
tBTC,
UNI,
USDC,
USDe,
USDS,
USDT,
WBTC,
weETH,
WETH,
wstETH,
ARB,
EURS,
MAI,
USDCe,
AERO,
EUR,
VIRTUAL
start_block
integer
default:0
required
Required range: x >= 0
end_block
integer
default:319407231
required
Required range: x >= 0

Response

200
application/json
Successful Response
liquidity_change
string
required

The change in the liquidity index between the two times, expressed as a percentage.

start_time
string
required

Dateime of starting block

end_time
string
required

Dateime of ending block