GET
/
v0
/
pendle
/
quote
Typescript (SDK)
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.pendle.quote({
    amount: "82.33",
  });

  console.log(result);
}

run();
{
  "quote": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:arbitrum:mainnet
required

The chain to use.

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

Optional block number (defaults to latest).

market_address
string
default:0x46d62a8dede1bf2d0de04f2ed863245cbba5e538
required

The market address of the desired position.

amount
default:100
required

The quantity to trade.

token_type
enum<string>
default:PT
required

Specifies the token to quote (PT, YT, or LP)

Available options:
PT,
YT,
LP
trade_type
enum<string>
default:BUY
required

Specifies the trade direction (BUY or SELL)

Available options:
BUY,
SELL

Response

200
application/json

Successful Response

The response is of type object.