Skip to content
NAVIDocs
Open app
Skip to Content

Developer Quick Start

Read a lending reserve from the public NAVI API and identify its asset and borrowing limit. You can do this without a wallet or an API key.

Query the lending pools

Request GET /api/navi/pools. Both examples look up reserve 34 so you can compare the same record across languages.

In a terminal, fetch the JSON response:

curl --fail --silent --show-error https://open-api.naviprotocol.io/api/navi/pools

To print just the example reserve, use jq:

curl --fail --silent --show-error https://open-api.naviprotocol.io/api/navi/pools |
  jq -e '.data[] | select(.id == 34) | {id, symbol: .token.symbol, suiCoinType, ltvValue}'

Check the result

A successful response has code: 0 and a data array. Here are the selected fields from the example reserve. Rates and limits can change.

{
  "id": 34,
  "symbol": "USDSUI",
  "suiCoinType": "0x44f838219cf67b058f3b37907b655f226153c18e33dfcd0da559a844fea9b1c1::usdsui::USDSUI",
  "ltvValue": 0.75
}
Response fieldUse it to
idSelect the reserve, independent of its position in the array.
token.symbolDisplay a ticker. Both examples print this value as symbol.
suiCoinTypeIdentify the underlying asset by its full Move type.
ltvValueRead maximum loan-to-value as a fraction. In this example, 0.75 means 75%.

Next steps

On this page