GET
/
v0
/
pendle
/
markets
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.pendle.markets(chain=models.PendleMarketsChain.ETHEREUM_MAINNET)

    # Handle response
    print(res)
{
  "markets": [
    {
      "name": "<string>",
      "address": "<string>",
      "expiry": "2023-11-07T05:31:56Z",
      "pt": "<string>",
      "yt": "<string>",
      "sy": "<string>",
      "underlyingAsset": "<string>",
      "details": {
        "liquidity": 123,
        "pendleApy": 123,
        "impliedApy": 123,
        "feeRate": 123,
        "movement10Percent": {
          "ptMovementUpUsd": 123,
          "ptMovementDownUsd": 123,
          "ytMovementUpUsd": 123,
          "ytMovementDownUsd": 123
        },
        "yieldRange": {
          "min": 123,
          "max": 123
        },
        "aggregatedApy": 123,
        "maxBoostedApy": 123
      },
      "isNew": true,
      "isPrime": true,
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:ethereum:mainnet
required

The chain to use.

Available options:
base:mainnet,
ethereum:mainnet,
arbitrum:mainnet
block
integer | null

Optional block number (defaults to latest).

Response

200
application/json

Successful Response

The response is of type object.