Nolus Docs
Infrastructure

ETL data API

Query indexed Nolus protocol data at etl.nolus.network through its v2 routes, from positions, pools and prices to account history, and how v1 retires.

The Nolus ETL indexes every Nolus block and contract event into a database and serves the result as a public, read-only JSON API under /api/v2. It answers the questions that a node answers slowly or not at all, such as time series, protocol-wide totals, liquidation and lending history, and the full history of an account's positions, which are its leveraged holdings. For authoritative current state, or to submit transactions, use the chain endpoints instead.

The API is published at the following locations:

ResourceLocation
Base URLhttps://etl.nolus.network, routes under /api/v2
Spec, the source of truthhttps://etl.nolus.network/openapi.json, one OpenAPI 3.1 document for v2 and the retiring v1
Overview for LLM agentshttps://etl.nolus.network/llms.txt
Browsable indexhttps://etl.nolus.network/
AccessPublic, no authentication, CORS open to any origin, best effort

Every response carries a Link header that points to the spec and to llms.txt. Since the spec holds the full parameter list and response schema of each endpoint, the sections below concentrate on the parts that most integrations need.

What it covers

The spec groups the v2 routes into seven families, which lead its tag list, and each family covers one area of protocol data:

FamilyData
RegistryRegistered protocols with their network, side and contract addresses, and currencies with their per-protocol decimals and denoms
StatsProtocol-wide figures such as TVL, supplied funds, interest due, PnL and treasury totals, plus daily activity, revenue, monthly active accounts and open positions per protocol
MarketsLease markets with open value, principal and mean leverage, current prices, price history and price candles, where a Lease is the contract that runs one position
PoolsLending pools with supplied, borrowed, utilization, earn APR and borrow APR, their history, their lenders and lender deposits and withdrawals, where a lending pool is the contract that positions borrow from and lenders deposit into
PositionsPositions across the protocol, one position with its history, closings, liquidations and interest payments
WalletsOne account's positions, transactions, position events, PnL and lending figures, and staking activity
OpsThe running release, the newest stored block, and the health of the hourly snapshot and the price feeds

The liveness and readiness probes, /health and /ready, stay at the root outside /api, so they belong to no family.

Useful endpoints

Most integrations start with the endpoints in this section. All of them use GET and were verified on 2026-12-01, and wherever an endpoint takes a protocol, it accepts SOLANA-METIS-USDC or any name that /api/v2/protocols?active=true returns.

Registry

These endpoints describe the registered protocols and the currencies they list:

EndpointReturns
/api/v2/protocols?active=trueActive protocols with network, DEX, position type, LPN and contract addresses
/api/v2/currencies?active=trueActive currencies with their decimals and denoms under each protocol that lists them
/api/v2/currencies/<ticker>One currency with its decimals, denoms and status under each protocol

In the last query, replace <ticker> with a ticker that /api/v2/currencies?active=true returns. The ticker matches in any letter case, and an amount is scaled by the decimal_digits of its own protocol's entry, which is why every currency carries one entry per protocol.

Stats

These endpoints return figures for the protocol as a whole, each with the scope it covers:

EndpointReturns
/api/v2/statsTVL, open position value, interest due, supplied funds, unrealized and realized PnL, transaction volume and treasury totals
/api/v2/stats?network=solanaThe same figures for the protocols on Solana, while the treasury totals stay protocol-wide
/api/v2/stats/dailyOne row per UTC day with positions opened, their value, loans granted and principal repaid

The interest_due figure is the loan interest due on the open positions together with their margin interest, which a position pays on top of the loan rate. The principal that the open positions still owe is the sum of borrowed over /api/v2/pools.

Markets

Market data covers each Lease market and the prices from the protocol oracles, which aggregate the prices that off-chain feeders send into one price per currency:

EndpointReturns
/api/v2/marketsOpen positions, open value and principal, mean leverage, 24-hour openings and 24-hour price change for each market
/api/v2/prices?ticker=<ticker>The ticker's current price on the feed of each active protocol that lists it, with its 24-hour change
/api/v2/prices/history?protocol=SOLANA-METIS-USDC&ticker=<ticker>&days=7Price points [unix_ms, "price"] for the last 7 days, oldest first

In the price queries, replace <ticker> with the ticker of the asset whose price you want, as /api/v2/currencies?active=true lists it under the protocol. days runs from 1 to 100, and the history uses one-minute buckets up to 7 days, five-minute buckets up to 29 days and hourly buckets beyond.

Pools

The pool endpoints describe every lending pool in one call and the history of one pool:

EndpointReturns
/api/v2/poolsEvery pool with supplied, borrowed, utilization, earn APR and borrow APR
/api/v2/pools/history?protocol=SOLANA-METIS-USDCHourly supplied and borrowed series for one pool, oldest first

Positions

Position data covers the positions that are open now as well as closed positions and liquidations:

EndpointReturns
/api/v2/positionsOpen positions with their opening figures, current value, PnL and liquidation price
/api/v2/positions?status=allEvery position opened in the last 3 months, open, closed or failed
/api/v2/positions/<contract>One position with its full event history
/api/v2/liquidationsLiquidation events of the last 3 months, newest first

Replace <contract> with the contract address of a position, which every position list returns as contract.

One account

The account endpoints take a Nolus account address in the path, in place of <address> below:

EndpointReturns
/api/v2/wallets/<address>/positionsEvery position the account requested, failed opens included, each with its history, newest first
/api/v2/wallets/<address>/transactionsThe account's transactions, decoded and paginated, newest first
/api/v2/wallets/<address>/statsRealized PnL, transaction volume, win rate, PnL bands and lending earnings

Replace <address> with the account's lowercase nolus1... address. The position list holds at most the newest 10,000 positions and is neither windowed nor paginated, while the transactions page through the account's whole history.

Ops and health

The ops endpoints and the probes report on the state of the API itself:

EndpointReturns
/api/v2/versionThe running release tag with its git commit and build time
/api/v2/latest-blockHeight of the newest block the ETL has stored
/health, /readyLiveness and readiness probes

Example requests

The first request below prints the first pool from /api/v2/pools, and the second saves three months of liquidation events to a CSV file:

curl -s https://etl.nolus.network/api/v2/pools | jq '.[0]'
curl -s 'https://etl.nolus.network/api/v2/liquidations?period=3m&format=csv' -o liquidations.csv

The position record

Every position list and the single-position read return the same record, and the fields below are the ones most integrations read first. The spec lists the rest, such as the loan, the entry price and the down payment, which is the user's own contribution to the position:

FieldValue
contractThe position's contract address
ownerThe account that requested the position
protocol, networkThe protocol of the position's pool and that protocol's network in lowercase
position_typelong or short
assetThe traded asset, which is the leased asset on a long and the shorted asset on a short
productbnpl for a buy now, pay later purchase and margin for every other position
statusopening, open, closed or open_failed
opened_atWhen the position was requested
closenull until the closing is recorded, then the closing time, close type, cost basis, amount collected and realized PnL in USD
valuationnull unless the newest hourly snapshot holds the position, then its value, principal, PnL, current price and liquidation price at that snapshot

The single-position read and the account's position list add history, which holds the position's repayments, closes, liquidations and interest collections, newest first.

Conventions and limits

Query parameters and responses follow the same conventions on every v2 route:

TopicRule
ScopeFigures default to all history and state what they cover as scope, {network, from}. Record and event lists default to the last 3 months, and the account lists take no period
Time windowperiod=3m|6m|12m|all, or from as RFC 3339 or YYYY-MM-DD. from is an exclusive lower bound and replaces period when both are given. Send a + in a time zone offset as %2B
PaginationTwo lists are paged. The account's transactions take skip and limit, default 10 and at most 100, and /api/v2/wallets/<address>/position-events?limit=100 takes a required limit of at most 10,000 and an optional before. Every other list returns its whole window
AmountsUSD amounts are decimal strings with exactly 8 places, NLS treasury totals have 6, and prices and rates are unrounded decimal strings. Token amounts are {amount, ticker} objects in display units of the ticker, and no amount is a JSON number, except the coins of a transaction's decoded msg, which stay the chain's own {denom, amount} in base units
TimestampsRFC 3339 UTC with Z at whole seconds, a day as YYYY-MM-DD and a month as YYYY-MM. Price history points carry their bucket's start in Unix milliseconds
AddressesAn account or contract address in the path must be a lowercase nolus1... bech32 address, and anything else returns 400
Protocols and networksprotocol and network match in any letter case, and a name that no registered protocol carries returns 404
ErrorsEvery error is JSON {"error": "...", "message": "...", "status": <code>}, an unknown path under /api/v2 included. A 400 names the parameter at fault and never repeats its value
CSVformat=csv on lists and series returns the rows of the JSON form for the whole window as text/csv, with no row cap. Nested fields become <parent>_<field> columns. The one limit is an account's staking activity, which returns 500 past 100,000 rows
FreshnessCached reads hold for 5 minutes, or 1 hour on pool history and lenders, and the registry, prices, single positions and per-account reads are not cached. Figures from the hourly snapshot, such as TVL, pools and position valuations, move when a new snapshot completes, and anchored_at names the snapshot they come from
Rate limitsNo per-endpoint limits. On 429, back off as Retry-After says

The API is free for reasonable use. For bulk history, fetch one format=csv list over the window you need instead of many paged requests, and read every pool through /api/v2/pools instead of calling once per pool.

v1 retirement

The unversioned routes under /api, such as /api/pools, are v1, and they retire once every known integration reads v2. Until then they answer unchanged, and a defect in them stays uncorrected, so a figure that v2 fixes keeps its old value in v1.

Every v1 response carries two headers that announce the move:

  • Deprecation: @1795996800, an RFC 9745 timestamp that marks v1 deprecated since 2026-11-30.
  • Link: <successor>; rel="successor-version", which names the v2 route to read instead. A v1 route without a successor carries Link: </llms.txt>; rel="deprecation", which points to the v1 retirement notes in the API's llms.txt.

Here <successor> stands for a v2 path, which carries the account address of the v1 request when that address is a valid Nolus account. Once the Nolus team sets the retirement date, v1 responses also carry it in a Sunset header, and this page states the date at the same time. A server-side client can read both headers, although CORS does not expose them to browser scripts.

The following request prints the two headers of one v1 route:

curl -sI https://etl.nolus.network/api/pools | grep -iE '^(deprecation|link)'

The table below maps the v1 routes that this page listed before v2 to the v2 route to read instead:

v1 routev2 route
/api/protocols/active/api/v2/protocols?active=true
/api/protocols/SOLANA-METIS-USDCNone. Every row of /api/v2/protocols?active=true carries the same fields, name among them
/api/currencies/active/api/v2/currencies?active=true
/api/pools/api/v2/pools, whose rows include earn_apr
/api/supplied-borrowed-history/api/v2/pools/history?protocol=SOLANA-METIS-USDC
/api/total-value-locked/api/v2/stats, field total_value_locked
/api/open-interest/api/v2/stats, field interest_due
/api/revenue/api/v2/stats, field treasury.revenue
/api/buyback-total/api/v2/stats, field treasury.buyback_total_nls
/api/lease-markets/api/v2/markets
/api/positions/api/v2/positions
/api/historically-opened/api/v2/positions?status=all
/api/liquidations/api/v2/liquidations
/api/prices/api/v2/prices?ticker=<ticker> for the current price and /api/v2/prices/history?protocol=SOLANA-METIS-USDC&ticker=<ticker>&days=7 for a series
/api/position-opens/api/v2/wallets/<address>/positions
/api/leases-search/api/v2/wallets/<address>/positions, whose records carry each contract
/api/txs/api/v2/wallets/<address>/transactions
/api/earnings/api/v2/wallets/<address>/stats, field lending_earnings
/api/realized-pnl/api/v2/wallets/<address>/stats, field realized_pnl
/api/blocks/api/v2/latest-block, which returns the newest stored height where v1 counted the stored blocks
/api/version/api/v2/version, whose version is the release tag

Replace <ticker> and <address> as in the sections above. The probes /health and /ready stay as they are, and every other v1 route names its successor in its own Link header.

On this page