Avantis logo
Protocol

Avantis API

Avantis is a perpetual trading protocol on Base. The API exposes a single vault (avUSDC) where depositors earn yield from trading fees.

Supported chains

Base

Available data

Vault Position

avUSDC vault deposit with balance, APY, exchange rate, and vault metrics

Notes

  • APY is a decimal (e.g., 0.0725 = 7.25%)
  • vaultPosition is null when the wallet has no position

Example query

query.graphql
query {
  walletPositions(inputs: [
    { protocol: "avantis", chainId: 8453, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
  ]) {
    data {
      ... on AvantisWalletPositions {
        protocol
        walletAddress
        chainId
        vaultPosition {
          underlyingAsset { symbol }
          balanceUsd
          apy
          exchangeRate
          vaultMetrics { totalAssets totalSupply }
        }
      }
    }
    errors { protocol error { code message } }
  }
}
Try in PlaygroundView full docs

Other protocols

MorphoMorphoAaveAavePendlePendleFluidFluidCompoundCompoundAvantAvantNeutrlNeutrlMidasMidas