GET
https://api.compasslabs.ai
/
v0
/
pendle
/
market
from compass_api_sdk import CompassAPI, models


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

    res = compass_api.pendle.market(chain=models.PendleMarketChain.ETHEREUM_MAINNET, user_address="0xa829B388A3DF7f581cE957a95edbe419dd146d1B", market_address="0xdace1121e10500e9e29d071f01593fd76b000f08")

    # Handle response
    print(res)
{
  "implied_apy": "<string>",
  "maturity_date": "2023-11-07T05:31:56Z",
  "underlying_token": {
    "address": "<string>",
    "symbol": "<string>",
    "name": "<string>"
  },
  "sy": {
    "address": "<string>",
    "symbol": "<string>",
    "name": "<string>"
  },
  "pt": {
    "address": "<string>",
    "symbol": "<string>",
    "name": "<string>"
  },
  "yt": {
    "address": "<string>",
    "symbol": "<string>",
    "name": "<string>"
  }
}

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
default:latest

The block number you want to get this data at.

user_address
string
default:0xa829B388A3DF7f581cE957a95edbe419dd146d1B
required

The user address of the desired position.

market_address
string
default:0xdace1121e10500e9e29d071f01593fd76b000f08
required

The market address of the desired position.

Response

200
application/json

Successful Response

The response is of type object.