Skip to main content
GET
/
v2
/
earn
/
pendle_markets
Python (SDK)
from compass_api_sdk import CompassAPI, models


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

    res = compass_api.earn.earn_pendle_markets(order_by="tvl_usd", direction=models.V2EarnPendleMarketsDirection.DESC, offset=0, limit=50)

    # Handle response
    print(res)
{
  "total": 123,
  "offset": 123,
  "limit": 123,
  "markets": [
    {
      "market_address": "<string>",
      "chain": "<string>",
      "pt_address": "<string>",
      "sy_address": "<string>",
      "yt_address": "<string>",
      "expiry": 123,
      "underlying_asset": "<string>",
      "underlying_name": "<string>",
      "underlying_symbol": "<string>",
      "pt_name": "<string>",
      "pt_symbol": "<string>",
      "tvl_usd": "<string>",
      "implied_apy": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

order_by
string
default:tvl_usd
required

The field to order the results by.

direction
enum<string>
default:desc

The direction to order the results by.

Available options:
asc,
desc
offset
integer
default:0

The offset of the first item to return.

limit
integer
default:50

The number of items to return.

Required range: x <= 1000
chain
enum<string> | null

Optional chain filter. If not provided, returns markets for all chains. The chain to use.

Available options:
base,
ethereum,
arbitrum
underlying_symbol
string | null

Filter markets by underlying asset symbol (e.g., 'USDC', 'WETH').

Response

Successful Response

Response model for a paginated list of Pendle markets.

total
integer
required
offset
integer
required
limit
integer
required
markets
PendleMarketInfo · object[]
required

A list of Pendle market information objects.