Public API
Read endpoints on perpsplexity.app for pools, prices, candles, trades, holders, leveraged tokens and DEX listing feeds, with real responses.
The site's read API is public, JSON and served from our indexer. It needs no key. The responses below are real, shortened with ….
Base URL: https://perpsplexity.app
Markets#
List pools#
GET /api/markets
| Query | Meaning |
|---|---|
network | mainnet or testnet. Pass mainnet: without it, testnet is read. |
kind | all (default), synthetic for pools backed by a position, or spot |
backing | a backing market's symbol, such as BTCUSD or COSTUSD: only pools backed by it |
limit | 1 to 100, default 30 |
cursor | the previous response's nextCursor, for the next page |
sort | cap (default), newest or trades |
search | text to match the name, symbol or coin type |
GET https://perpsplexity.app/api/markets?network=mainnet&limit=1{
"items": [{
"id": "0x3387ffc4865504391d932f4fd46c91c14aee44e167e482b92e97fa7ac7be777c",
"network": "mainnet",
"meme_type": "0x42ba9220e980b4819e4df208dd50013d0bbbfde142996e8db1319ac61f879205::zuk::ZUK",
"quote_type": "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
"name": "Zuk",
"symbol": "ZUK",
"meme_reserve": "63796216576345",
"quote_reserve": "28978135843",
"meme_decimals": 6,
"quote_decimals": 6,
"price": 0.0004542296925762335,
"pool_kind": "composite",
"state": 2,
"…": "…"
}],
"backingMarkets": ["AMCUSD", "BRENTUSD", "BTCUSD", "…"],
"nextCursor": "eyJuZXR3b3JrIjoibWFpbm5ldCIs…"
}Follow nextCursor until it is null to read every pool. pool_kind is composite for a pool backed by a position and spot for a spot pool. state is the pool's state, listed on Perp meme pools. backingMarkets lists every market that backs at least one pool.
A pool's stats#
GET /api/markets/{poolId}/stats
{
"market": { "marketCap": 341476.34, "price": 0.000454229, "trades": 4659, "dex": { "venue": "cetus", "quote": "7125347522", "meme": "49665150697514" } },
"changes": { "5m": 0, "1h": 0, "4h": 3.4859, "24h": 5.2352 },
"buys": 33, "sells": 28, "buyVolume": 2005.31, "sellVolume": 1726.97,
"buyers": 23, "sellers": 17, "volume24h": 3732.29, "volumeTotal": 453995.81, "holders": 1012
}Candles#
GET /api/markets/{poolId}/bars?resolution=60&series=trade&from={unix seconds}&to={unix seconds}
resolution is minutes (1, 5, 15, 60, 240) or 1D. series is trade (the coin's price, the default), mcap (market cap), backing (the backing market's mark price) or pair (the coin priced in the backing asset). Times go in as seconds and come back as milliseconds.
{ "bars": [{ "time": 1791734400000, "open": 0.000438928, "high": 0.000454052, "low": 0.000424082, "close": 0.000454052, "volume": 1466.10 }], "nextTime": null }Trades#
GET /api/markets/{poolId}/trades
{
"poolId": "0x3387…777c",
"items": [{
"digest": "22BrDTJPYmydKzcwM4gQYCXxw5BjdWTsRW9psVJsUoYt",
"time": 1791744417698,
"buy": true,
"memeAmount": "45041082840",
"quoteAmount": "19306649",
"fee": "386133",
"trader": "0x8e39…a313",
"venue": "cetus",
"price": 0.00042007
}],
"nextCursor": "eyJ2ZXJzaW9uIjoxLC…"
}venue says where the trade happened: the pool itself or the coin's exchange pool.
Holders#
GET /api/markets/{poolId}/holders returns a holder snapshot with supply reconciliation. Pass the previous response's cursor as cursor for the next page.
Every pool's 24 hours#
GET /api/markets/summary?network=mainnet
{
"network": "mainnet",
"totals": { "pools": 131, "volume24h": 15755.53, "backing": 128566.37 },
"pools": { "0x4371…8646": { "volume24h": 0, "trades24h": 0, "change24h": 0 }, "…": "…" }
}Pools of a coin#
GET /api/markets/by-coin?network=mainnet&coinType={coin type}
{ "network": "mainnet", "coinType": "0x42ba…::zuk::ZUK", "poolIds": ["0x3387ffc4865504391d932f4fd46c91c14aee44e167e482b92e97fa7ac7be777c"] }A pool in one read#
GET /api/pool-snapshot?pool={poolId}&network=mainnet
Pools backed by a position (pool_kind composite): the resolved package, Config, types and decimals, the latest health sample, the curve, market cap and price.
{
"poolId": "0x3387…777c",
"configId": "0xb57be7c2f90d8bf9232af4cb967b411861b713f4480dfe50871dc85579f98411",
"resolved": {
"reference": {
"state": 2,
"packageId": "0xaedb8c9a905a778e831aeb4928f660210a7a645925348a7c4ec1cb4a6a3fd16e",
"memeType": "0x42ba…::zuk::ZUK",
"lendingType": "0xf95b…::suilend::MAIN_POOL",
"memeDecimals": 6,
"quoteDecimals": 6,
"…": "…"
}
}
}Prices#
GET /api/coin-price?types={coin type}[,{coin type}…]
{ "prices": { "0x42ba9220e980b4819e4df208dd50013d0bbbfde142996e8db1319ac61f879205::zuk::ZUK": 0.000390323 } }Leveraged tokens#
Every token and its objects#
GET /api/lev/tokens?network=mainnet
{
"deployment": {
"packageId": "0x294e0968e465d9e2e560b825c603a40d34a7ee72e5a9157ff796519d44f7df4a",
"configId": "0xfa003af67a3c948d1ebf9bbde1b08da54bee838d92ce577046fbc8fdc7d15cb4",
"registryId": "0xda0bd7a60182efd662b70e0de99218bbd2b6c4bbe9de23c0bb5a87ec52b37c37",
"quoteType": "0xdba3…::usdc::USDC",
"tokens": [{
"symbol": "BTC3L", "long": true, "targetBps": 30000, "minBps": 27000, "maxBps": 33600,
"coinType": "0x5f81…::btc3l::BTC3L", "decimals": 9,
"tokenId": "0x7e816bac3ff396dd2970c574bbac354c9cdcac2a047b377db93e39455b22da48",
"vaultId": "0xe5934bdd7ed2f4d8844c8b5510c5b7b151cf5e4c41fb77adb398931a7997e133",
"accountId": "0xa6117219eb52c03250f344c0e0a5a0d5360848dea762ef004e6cfd9ff93d415a",
"marketId": "0x05b5c3bea84c4b8f33cf592d899008336dcbae8c9c6c75b2f8e7b8f7878744c1",
"…": "…"
}]
},
"tokens": ["…"]
}A token's value over time#
GET /api/lev/history?network=mainnet&token={token object id}&range=7d
range is 1d, 7d, 30d or all. token is the token object id, not its symbol.
{ "points": [{ "t": 1791657435606, "price": 0.910317, "leverage": 2.8631, "mark": 82940.02 }, "…"] }Here price is in USD per whole token, already converted.
DEX listing feeds#
The DexScreener adapter endpoints work for any integrator that wants block-based trade feeds.
| Endpoint | Returns |
|---|---|
GET /api/dexscreener/latest-block | { "block": { "blockNumber": 332905062, "blockTimestamp": 1791744629 } } (Sui checkpoints) |
GET /api/dexscreener/pair?id={poolId} | the pool as a pair: assets, creation block, creator, feeBps, and metadata (kind, core, state, backing, leverage) |
GET /api/dexscreener/asset?id={coin type} | name, symbol, decimals and supply of a coin |
GET /api/dexscreener/events?fromBlock={n}&toBlock={m} | swap events in a checkpoint range, with maker, amounts and price |