import { CompassApiSDK } from "@compass-labs/api-sdk";
const compassApiSDK = new CompassApiSDK({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await compassApiSDK.pendle.pendleMarkets({});
console.log(result);
}
run();
{
"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"
}
]
}
Get a list of active markets.
import { CompassApiSDK } from "@compass-labs/api-sdk";
const compassApiSDK = new CompassApiSDK({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await compassApiSDK.pendle.pendleMarkets({});
console.log(result);
}
run();
{
"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"
}
]
}
arbitrum
, base
, ethereum
Successful Response
The response is of type object
.
Was this page helpful?