GET
/
v0
/
aave
/
historical_transactions
/
get
from compass_api_sdk import CompassAPISDK, models


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

    res = cas_client.aave_v3.historical_transactions(chain=models.AaveHistoricalTransactionsChain.ARBITRUM_MAINNET, user_address="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")

    # Handle response
    print(res)
{
  "total": 123,
  "offset": 123,
  "limit": 123,
  "transactions": [
    {
      "id": "<string>",
      "timestamp": 123,
      "txHash": "<string>",
      "action": "supply",
      "supply": {
        "amount": "<string>",
        "reserve": {
          "symbol": "<string>",
          "decimals": 123
        },
        "assetPriceUSD": "<string>"
      },
      "redeemUnderlying": {
        "amount": "<string>",
        "reserve": {
          "symbol": "<string>",
          "decimals": 123
        },
        "assetPriceUSD": "<string>"
      },
      "borrow": {
        "amount": "<string>",
        "borrowRateMode": "<string>",
        "borrowRate": "<string>",
        "stableTokenDebt": "<string>",
        "variableTokenDebt": "<string>",
        "reserve": {
          "symbol": "<string>",
          "decimals": 123
        },
        "assetPriceUSD": "<string>"
      },
      "usageAsCollateral": {
        "fromState": "<string>",
        "toState": "<string>",
        "reserve": {
          "symbol": "<string>",
          "decimals": 123
        }
      },
      "repay": {
        "amount": "<string>",
        "reserve": {
          "symbol": "<string>",
          "decimals": 123
        },
        "assetPriceUSD": "<string>"
      },
      "swapBorrowRate": {
        "borrowRateModeFrom": "<string>",
        "borrowRateModeTo": "<string>",
        "variableBorrowRate": "<string>",
        "stableBorrowRate": "<string>",
        "reserve": {
          "symbol": "<string>",
          "decimals": 123
        }
      },
      "liquidationCall": {
        "collateralAmount": "<string>",
        "collateralReserve": {
          "symbol": "<string>",
          "decimals": 123
        },
        "principalAmount": "<string>",
        "principalReserve": {
          "symbol": "<string>",
          "decimals": 123
        },
        "collateralAssetPriceUSD": "<string>",
        "borrowAssetPriceUSD": "<string>"
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

offset
integer
default:0
limit
integer
default:100
chain
enum<string>
default:arbitrum:mainnet
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
user_address
string
default:0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B
required

Response

200
application/json
Successful Response

Response model for getting Aave historical transactions.