Every GET route, its query and the full shape of what it returns.
None of these routes needs a wallet signature: the register is public. Each response is JSON in the shape below; types such as U64 and Address are defined in API. With the TypeScript client, each route is the method named in the routes table, and its response is parsed with the same schema the API validates against.
Config
GET /v1/config returns the ledger's configuration: read it once at start.
Field
Type
Description
networkLabel
string
The network's name as the app shows it.
cluster
"localnet" | "mainnet"
localnet or mainnet.
programId
Address
Agora's program address.
cashMint
Address | null
The SPL mint of ledger cash. null until the ledger is initialized.
cashDecimals
integer
Decimals of ledger cash amounts.
feeBps
integer
The settlement fee in basis points.
feeCapBps
integer
The highest fee the admin can set.
feeRecipient
Address
The wallet that receives settlement fees.
operator
Address
The key that co-signs admissions.
admissionMode
"instant" | "review"
instant when the API approves requests at once; review when the operator approves them.
faucetAvailable
boolean
true where POST /v1/faucet sends test USD.
lookupTable
Address | null
The address lookup table built transactions compile over. null until set up.
repoMinTermSeconds
integer
The shortest repo term, in seconds.
repoMaxTermSeconds
integer
The longest repo term, in seconds.
bondFace
U64
A bond unit's face value in cash atoms.
GET /health says whether the API is serving the ledger.
Field
Type
Description
status
"fixture" | "waiting" | "ready"
fixture on the fixture API, waiting before the program is deployed, ready once it serves the ledger.
Accounts
GET /v1/accounts/{wallet} returns one wallet's whole account: admission, cash, positions, open offers and repo offers, repos on both sides and its settlements. A wallet that was never admitted returns admission.state: "none" and empty lists.
Field
Type
Description
wallet
Address
The wallet's address.
admission
Admission
The wallet's admission state.
cash
object
The wallet's ledger cash.
cash.free
U64
Free cash atoms.
cash.locked
U64
Cash atoms locked in bids and repo offers.
positions
Position[]
One entry per instrument the wallet holds.
offers
Offer[]
The wallet's open offers.
repoOffers
RepoOffer[]
The wallet's open repo offers.
borrowedRepos
Repo[]
Repos the wallet borrowed in, every status.
lentRepos
Repo[]
Repos the wallet lent in, every status.
settlements
Settlement[]
Settlements that touched the wallet, newest first.
Admission
Field
Type
Description
state
"none" | "pending" | "admitted" | "rejected"
none, pending, admitted or rejected.
approved
boolean
true once the request is approved, so the wallet can build admit.
entity
string | null
The entity name requested. null before any request.
role
"holder" | "issuer" | null
The role requested. null before any request.
reason
string | null
Why a request was rejected. null otherwise.
Position
Field
Type
Description
code
Code
The instrument code.
name
string
The instrument's name.
kind
"equity" | "bond"
equity or bond.
free
U64
Free units.
locked
U64
Units locked in asks.
pledged
U64
Units pledged to repos.
value
BaseUnits | null
All units times the last price, in cash atoms. null before the first fill.
incomeToClaim
U64
Income in cash atoms the position can claim now.
Party
Every account the API names comes with its entity name.
Field
Type
Description
wallet
Address
The wallet's address.
entity
string
The member's entity name.
Instruments
GET /v1/instruments lists every instrument; GET /v1/instruments/{code} returns one. GET /v1/issuers/{wallet}/instruments lists those one issuer listed.
Field
Type
Description
code
Code
The instrument code.
name
string
The instrument's name.
kind
"equity" | "bond"
equity or bond.
issuer
Party
The issuer.
face
U64 | null
Face value per unit in cash atoms. null for an equity.
couponBps
integer | null
Yearly coupon in basis points. null for an equity.
maturity
Timestamp | null
Bond maturity. null for an equity.
listedAt
Timestamp
When the instrument was listed.
outstanding
U64
Units on the register.
lastPrice
U64 | null
Price of the latest fill, cash atoms per unit. null before the first fill.
change24hBps
integer | null
Change of the last price against the last fill at or before 24 hours ago, in basis points. null without both prices.
volume24hUnits
BaseUnits
Units filled in the last 24 hours.
volume24hCash
BaseUnits
Cash atoms filled in the last 24 hours.
bestBid
U64 | null
Highest open bid price. null with no bids.
bestAsk
U64 | null
Lowest open ask price. null with no asks.
holderCount
integer
Owners with units in any lane.
incomePaid
BaseUnits
Cash atoms of income paid into the instrument, all time.
Book
GET /v1/instruments/{code}/book returns the open offers: bids highest price first, asks lowest first.
Field
Type
Description
bids
Offer[]
Open bids, highest price first.
asks
Offer[]
Open asks, lowest price first.
Offer
Field
Type
Description
id
Address
The Offer account's address.
code
Code
The instrument code.
side
"buy" | "sell"
buy (a bid) or sell (an ask).
maker
Party
The maker.
price
U64
Cash atoms per unit.
unitsOpen
U64
Units still open.
status
"open" | "closed"
open or closed.
postedAt
Timestamp
When it was posted.
Register
GET /v1/instruments/{code}/register returns one entry per owner holding units.
Field
Type
Description
owner
Party
The owner.
free
U64
Free units.
locked
U64
Units locked in asks.
pledged
U64
Units pledged to repos.
shareBps
integer
The owner's share of units outstanding, in basis points, rounded to the nearest.
Income
GET /v1/instruments/{code}/income returns every distribution the issuer paid.
Field
Type
Description
amount
U64
Cash atoms paid.
perUnitScaled
BaseUnits
Cash atoms per outstanding unit, scaled by 10^12.
outstanding
U64
Units outstanding at the payment.
time
Timestamp
When it was paid.
signature
Signature
The payment's transaction signature.
Candles
GET /v1/instruments/{code}/candles folds fills into OHLC candles.
Query
Type
Required
Description
interval
"S1" | "M1" | "M5" | "M15" | "H1"
no (default H1)
Candle width: S1, M1, M5, M15 or H1.
Field
Type
Description
interval
"S1" | "M1" | "M5" | "M15" | "H1"
S1, M1, M5, M15 or H1.
startAt
Timestamp
Start of the candle.
open
Price
First fill's price in the candle.
high
Price
Highest fill price.
low
Price
Lowest fill price.
close
Price
Last fill's price.
volumeBase
BaseUnits
Units filled.
volumeQuote
BaseUnits
Cash atoms filled.
trades
integer
Fills in the candle.
Each price keeps the exact fill it came from as a Price, so no rounding happens until you divide:
Field
Type
Description
quote
BaseUnits
Cash atoms.
base
PositiveU64
Units. The price per unit is quote divided by base.
Repos
GET /v1/repo-offers lists repo offers; the ones a borrower can take have status: "open". GET /v1/repos lists repos, every status, filtered to one wallet's with wallet.
Query
Type
Required
Description
wallet
Address
no
Only repos this wallet borrowed or lent in.
RepoOffer
Field
Type
Description
id
Address
The RepoOffer account's address.
code
Code
The instrument code.
lender
Party
The lender.
advancePerUnit
U64
Cash atoms advanced per pledged unit.
rateBps
integer
Yearly rate in basis points.
termSeconds
integer
Repo term in seconds.
cashAvailable
U64
Locked cash still available.
unitsAvailable
U64
Units the available cash can still advance against.
status
"open" | "closed"
open or closed.
postedAt
Timestamp
When it was posted.
Repo
Field
Type
Description
id
Address
The Repo account's address.
code
Code
The pledged instrument.
lender
Party
The lender.
borrower
Party
The borrower.
units
U64
Units pledged.
advance
U64
Cash atoms advanced.
repurchaseAmount
U64
Cash atoms to repay, fixed at opening.
rateBps
integer
Yearly rate in basis points.
openedAt
Timestamp
When the repo opened.
maturity
Timestamp
When the repo matures.
status
"active" | "repaid" | "defaulted"
active, repaid or defaulted.
Settlements
GET /v1/settlements pages through every settlement, newest first. For the next page, pass page.nextCursor back as cursor with the same filters.
Query
Type
Required
Description
cursor
string
no
nextCursor from the previous page.
limit
number
no (default 24)
Settlements per page, 1 to 100.
instrument
Code
no
Only settlements in this instrument code.
account
Address
no
Only settlements that touched this wallet.
Field
Type
Description
items
Settlement[]
Settlements, newest first.
page
PageInfo
Paging state.
asOf
Timestamp
When the page was read.
Field
Type
Description
nextCursor
string | null
Pass as cursor, with the same filters, for the next page. null on the last page.
GET /v1/events is a server-sent event stream, filtered with the same instrument and account as settlements. Each message is named by its type and carries id, timestamp, type and data:
Type
Data
Do
settlement
a Settlement
add it to what you show
ready
a Health
the stream is live
resync
{ "reason": string }
refetch the current page: the stream may have missed some
Other types may appear; ignore those you don't know.