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"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/GetSpotSwappingPriceResponse"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.