For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Integration

Overview

Learn how to access data for all vaults through Sierra's API.

The Sierra Protocol API returns the vault-level data, headline metrics (APY, TVL, exchange rate) and reserve allocations (what the vault is allocated to and in what amounts).

For the full endpoint reference, see the Sierra API docs on SwaggerHub.

Integration Paths

API integrations are read only. The Sierra Protocol API cannot deposit, withdraw or move funds, and it does not return account-level data.

To move money or read a wallet's balance, use Sierra's web app or the vault's smart contract (see Smart Contract Integration page).

Authentication

API access requires an authentication token issued by Sierra Protocol on request (see Support section below). Pass it in the request header:

curl -X GET "https://api.sierra.money/<ENDPOINT_PATH>" \
  -H "x-api-key: <YOUR_API_TOKEN>"

Note: Keep your token secret. Do not put it in client-side code or public repositories.

Pool address

Every endpoint below takes the Vault's pool address (i.e. SPLUS: 0x7706b1a531A7A8cB4c26D24CDc9ae4094a3e0302) as the lytPoolAddr path parameter. Always include it, so the response covers your desired vault only.

Get Headline Vault Metrics

Return headline metrics for a vault

This endpoint returns the headline figures shown on each Vault's transparency tab. These are reported data points, not statements about future returns.

GET /lytHero/{lytPoolAddr}

Parameter
Type
Required
Description

lytPoolAddr

string

Yes

The SPLUS pool address (0x7706b1a531A7A8cB4c26D24CDc9ae4094a3e0302)

Example Request:

Example Response:

Schema

The Response object:

Field
Type
Title
Description

action

string

Action

Name of the handler that served the request.

result

HeroMetricsCTO

Result

The vault's headline metrics.

The HeroMetricsCTO object:

Field
Type
Title
Description

timestamp

integer

Timestamp

Unix time, in seconds, when the metrics were recorded.

marketCap

number

Market Cap

Market capitalization of the Vault.

volume24h

number

24h volume

Trading volume over the last 24 hours.

marketPrice

number

Market Price

Secondary-market price of the Vault token.

exchangeRate

number

Exchange Rate

The mint and redeem exchange rate in the token’s smart contract.

APY3Day

number

3-day APY

Average APY over the last 3 days, as a decimal (0.05 = 5%).

APY7Day

number

7-day APY

Average APY over the last 7 days, as a decimal.

APY30Day

number

30-day APY

Average APY over the last 30 days, as a decimal.

APY30DaySimple

number

30-day simple APY

30-day APY without compounding, as a decimal.

Get Reserve Allocations

Return reserve allocations for the vault

This endpoint returns what the vault is allocated to and in what amounts, as shown on the transparency tab.

GET /lytPoolReservesState/{lytPoolAddr}

Example Request:

Example Response:

Note: The above values are illustrative.

Schema

The Response object:

Field
Type
Title
Description

action

string

Action

Name of the handler that served the request.

result

object

Result

The vault's reserve data (see below).

The Result object:

Field
Type
Title
Description

lytPoolAddr

string

Pool address

Address of the vault queried.

lytPoolOverview

object

Pool overview

Vault configuration and on-chain state: name, symbol, liquidity token, total assets, exchange rate, fees and contract addresses.

reserves

array of Reserve

Reserves

One entry per reserve the vault can allocate to.

totalReservesValue

string

Total reserves value

Value of all reserves, in liquidity-token base units.

netAPY

string

Net APY

Vault net APY, in basis points ("500" = 5.00%).

yieldMetrics

object

Yield metrics

Trailing, year-to-date and since-inception yield figures.

timestamp

integer

Timestamp

Unix time, in milliseconds, when the response was built.

The Reserve object

Field
Type
Title
Description

apy

string

APY

Current APY of the reserve, in basis points ("500" = 5.00%).

assetBalance

string

Asset balance

Value of the position, in liquidity-token base units (i.e. USDC).

assetBalanceMinusWithdrawals

string

Net asset balance

Asset balance net of pending withdrawals.

chainConfigurationName

string

Chain

Chain the reserve is held on, e.g. Ethereum, Avalanche, Plume.

chainId

integer

Chain ID

EVM chain ID.

currentPercentage

number

Current allocation

Share of total reserves, in percent (32.5 = 32.5%).

id

string

ID

Unique ID of the reserve.

isLiquidityAsset

boolean

Liquidity asset

true for uninvested liquidity-token balances (the liquidity buffer).

poolAddr

string

Reserve address

Address of the underlying vault or token.

poolName

string

Reserve name

Display name of the reserve.

poolToken

string

Reserve token

Token held for the reserve.

stageName

string

Stage

Deployment stage, prod in production.

tokenBalance

string

Token balance

Balance of poolToken held, in its base units.

withdrawActivityCTOs

array

Withdrawal activity

Pending withdrawal activity. Not returned for every reserve.

yieldType

string

Yield type

Reserve category, e.g. LiquidityBuffer, Prime Plus, DeFi or RWA.

Note: Token amounts are strings in the token's base units (USDC has 6 decimals, so "1000000" = 1 USDC).

Support

Note: Never send your API token by email or chat.

Last updated