Base URL
Every route lives underhttps://api.pariprotocol.xyz. Try it:
Reading the numbers
- Amounts are decimal strings in base units, so they never lose precision.
- Each token states its
quote: themint,symbolanddecimalsof the asset its amounts are in. - Token balances have 6 decimals.
- Times are Unix seconds.
- USD fields are
nullwhen no price is known. finalizedistrueonce the data comes from a final slot.
Paging
List routes return one page:limitsets the page size. The default is 50 and the most is 100. A larger value is lowered to 100.cursorasks for the next page. Pass thenextvalue from the page before.nextisnullon the last page.- A cursor is opaque. Do not build or change one.
Errors
Every error has the same body:
Browsers can only call the API from the Pari site. Call it from your own server or script.
Data and analytics
Tokenized stocks are not offered to US persons.
Tokens
GET /v1/tokens takes these filters:
Trades
candles takes these parameters and returns at most 1000 buckets per call:
Wallet positions
A SOL token’s rewards wait in its vault until the holder takes them; the row carries what a claim needs. A stock token’s rewards are sent by the protocol, and
status reports where each leaf is: waiting, queued, delivered, recommit-pending, recommitted or cancelled.
Live feed
GET /v1/stream is a live feed of server-sent events. It stays open and sends each event as it happens.
event name, an id and JSON data. The feed can also send three control events:
retractwithdraws earlier events.resetmeans you fell too far behind. Fetch the data again.slowmeans your client read too slowly. The server then closes the connection, so reconnect withafter.