Aave V3
Aerodrome Slipstream
Morpho
Uniswap V3
Universal
Pendle
Transaction Batching
Smart Account
Pendle
List Market Data
Get a list of active markets.
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"
}
]
}
Query Parameters
The chain to use.
Available options:
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
Optional block number (defaults to latest).
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
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"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.