Pendle logo
Protocol

Pendle API

Pendle splits yield-bearing assets into Principal Tokens (PT) for fixed yield and Yield Tokens (YT) for floating yield. The API returns four position types across Pendle markets.

Supported chains

EthereumBaseArbitrumOptimismBSCSonic

Available data

PT Positions

Principal Tokens for fixed yield — includes implied APY, locked APY, expiry date, and PT discount

YT Positions

Yield Tokens for floating yield — includes implied APY, expiry date, and accrued interest

LP Positions

Liquidity provider shares with LP APY and implied APY

SY Positions

Standardized Yield tokens with balance and USD value

Notes

  • impliedApy is the current market rate — lockedApy is the user's actual locked rate based on entry price
  • ptDiscount is the discount of PT price relative to the underlying (e.g., 0.012 = 1.2%)
  • After expiry, PT tokens are redeemable 1:1 for the underlying asset

Example query

query.graphql
query {
  walletPositions(inputs: [
    { protocol: "pendle", chainId: 1, walletAddress: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6" }
  ]) {
    data {
      ... on PendleWalletPositions {
        protocol
        walletAddress
        chainId
        ptPositions {
          ptToken { symbol }
          balanceUsd
          impliedApy
          lockedApy
          expiryDate
          ptDiscount
        }
        ytPositions {
          ytToken { symbol }
          balanceUsd
          impliedApy
          expiryDate
          accruedInterest
        }
        lpPositions {
          lpToken { symbol }
          balanceUsd
          lpApy
        }
      }
    }
    errors { protocol error { code message } }
  }
}
Try in PlaygroundView full docs

Other protocols

MorphoMorphoAaveAaveFluidFluidCompoundCompoundAvantAvantAvantisAvantisNeutrlNeutrlMidasMidas