Fluid logo
Protocol

Fluid API

Fluid is a lending protocol with two position types: lending positions (fToken deposits earning yield) and vault positions (CDP-style collateralized debt positions). Vaults can be standard or "smart" — backed by DEX liquidity with multi-asset collateral or debt.

Supported chains

EthereumBase

Available data

Lending Positions

fToken deposits earning yield with balance, APY, and reward info

Vault Positions

CDP vaults with collateral, debt, collateral factor, liquidation threshold, and smart vault fields

Notes

  • Fluid APY is a percentage value (4.85 = 4.85%), unlike most protocols which use decimals
  • Each vault position has a unique NFT ID — a wallet can hold multiple positions in the same vault
  • Smart vault fields (supplyToken1, dexSupplyRate, etc.) are null for standard vaults

Example query

query.graphql
query {
  walletPositions(inputs: [
    { protocol: "fluid", chainId: 1, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
  ]) {
    data {
      ... on FluidWalletPositions {
        protocol
        walletAddress
        chainId
        lendingPositions {
          fTokenSymbol
          underlyingAsset { symbol }
          balanceUsd
          apy
          rewards { tokenSymbol rate rewardType }
        }
        vaultPositions {
          nftId
          isSmartCol
          isSmartDebt
          supplyToken { symbol }
          borrowToken { symbol }
          supply
          borrow
          collateralFactor
          liquidationThreshold
        }
      }
    }
    errors { protocol error { code message } }
  }
}
Try in PlaygroundView full docs

Other protocols

MorphoMorphoAaveAavePendlePendleCompoundCompoundAvantAvantAvantisAvantisNeutrlNeutrlMidasMidas