GET
/
v1
/
ethena
/
vault
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.ethena.ethenaVault({});

  console.log(result);
}

run();
{
  "name": "<string>",
  "symbol": "<string>",
  "decimals": 123,
  "total_assets": "<string>",
  "total_supply": "<string>",
  "share_price": "<string>",
  "underlying_token": {
    "address": "<string>",
    "name": "<string>",
    "symbol": "<string>",
    "decimals": 123
  },
  "apy": {
    "current": "<string>",
    "apy_1_day": "<string>",
    "apy_7_day": "<string>",
    "apy_30_day": "<string>"
  },
  "user_position": {
    "amount_of_shares": "<string>",
    "amount_in_underlying_token": "<string>"
  },
  "cooldown_duration_days": 123,
  "cooldown_position": {
    "amount_in_underlying_asset": "<string>",
    "cooldown_end": "2023-11-07T05:31:56Z",
    "can_be_withdrawn": true
  }
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:ethereum
required
Available options:
ethereum
block
integer | null

Optional block number (defaults to latest).

user_address
string | null
default:0xb8340945eBc917D2Aa0368a5e4E79C849c461511

The user address of the desired vault position. Only include if you would like the user position included in the response. Defaults to None.

Response

200
application/json

Successful Response

The response is of type object.