Pendle · Schema

GetSpotSwappingPriceResponse

Web3DeFiYield TokenizationCryptoPrincipal TokensYield TokensAMMLiquidity Pools

Properties

Name Type Description
underlyingToken string underlying token address that will be used for swapping
underlyingTokenToPtRate object number of PT by swapping 1 underlying token. If the swap can not be done, this value will be null
ptToUnderlyingTokenRate object number of underlying token by swapping 1 PT. If the swap can not be done, this value will be null
underlyingTokenToYtRate object number of YT by swapping 1 underlying token. If the swap can not be done, this value will be null
ytToUnderlyingTokenRate object number of underlying token by swapping 1 YT. If the swap can not be done, this value will be null
impliedApy number implied apy of the given market
View JSON Schema on GitHub

JSON Schema

GetSpotSwappingPriceResponse.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "GetSpotSwappingPriceResponse",
  "type": "object",
  "properties": {
    "underlyingToken": {
      "type": "string",
      "description": "underlying token address that will be used for swapping"
    },
    "underlyingTokenToPtRate": {
      "type": "object",
      "description": "number of PT by swapping 1 underlying token. If the swap can not be done, this value will be null",
      "nullable": true
    },
    "ptToUnderlyingTokenRate": {
      "type": "object",
      "description": "number of underlying token by swapping 1 PT. If the swap can not be done, this value will be null",
      "nullable": true
    },
    "underlyingTokenToYtRate": {
      "type": "object",
      "description": "number of YT by swapping 1 underlying token. If the swap can not be done, this value will be null",
      "nullable": true
    },
    "ytToUnderlyingTokenRate": {
      "type": "object",
      "description": "number of underlying token by swapping 1 YT. If the swap can not be done, this value will be null",
      "nullable": true
    },
    "impliedApy": {
      "type": "number",
      "description": "implied apy of the given market"
    }
  },
  "required": [
    "underlyingToken",
    "underlyingTokenToPtRate",
    "ptToUnderlyingTokenRate",
    "underlyingTokenToYtRate",
    "ytToUnderlyingTokenRate",
    "impliedApy"
  ]
}