Developer GuidesGuide

SunSwap API: SUN.io's Tron DEX, V3 and V4 pools via REST

SunSwap V3 and V4 traded about $58.9 million on Tron on 19 November 2026, according to DexPaprika data. SUN.io offers builders an open API, a Universal Router and contracts; this guide covers them and SunSwap pools over REST.

SunSwap API: SUN.io's Tron DEX, V3 and V4 pools via REST
Illustration: CoinPaprika

SunSwap is the DEX that leads Tron, and SUN.io publishes a full developer stack: a public REST API at open.sun.io, a Universal Router, open contract repos, a command-line tool and an MCP server. DexPaprika adds pool data, candles and swaps across Tron over REST.

According to DexPaprika data, on 19 November 2026 SunSwap V3 carried 50.6% of indexed Tron DEX volume and SunSwap V4 carried 49.4%, about $58.9 million between them in 24 hours.

SunSwap is the flagship exchange of SUN.io, the DeFi platform of the TRON ecosystem, and its token SUN (CoinPaprika id sun-sun) ranked 140 on CoinPaprika when I checked on 19 November 2026. This guide covers what SunSwap offers builders, how its V3 and V4 pools trade, and how to read them over REST.

What SunSwap and SUN.io offer developers

SUN.io documents its protocols at docs.sun.io, 210 pages by sitemap count, and these are the pieces a developer reaches for:

Piece What it gives you
SUN.IO APIPublic read-only REST endpoints at open.sun.io for prices, pools, pairs, positions, transactions and protocol statistics
Universal RouterOne entry point that routes swaps across SunSwap V1, V2, V3, V4, Curve and PSM, with Permit2 signatures instead of pre-approvals
Protocol contractsAddresses and function references for V1 to V4, SunCurve, SunPump and the mining contracts
SUN CLIA command-line tool for prices, quotes, swaps and liquidity, published as @sun-protocol/sun-cli
SUN MCP Server41 tools that let an AI assistant query SunSwap and, in a local setup, trade

The SUN.IO API docs say the endpoints "are public, read-only and require no credentials for normal low-frequency queries," with higher limits available through an API key requested from the SUN.IO team. Its base URL is https://open.sun.io:

curl "https://open.sun.io/apiv2/pools?protocol=V3&pageSize=3&sort=volumeUsd1d"

That answered HTTP 200 for me and returns SunSwap's own view of each pool: poolAddress, feeRate, reserveUsd, volumeUsd1d, transaction1d, APR fields and token symbols. The contracts side is open too: the sun-protocol organization on GitHub holds 29 repositories, including sunswap-v4-core, the Universal Router and its SDK, and sun-cli. On Tron mainnet the V3 factory is TThJt8zaJzJMhCEScH7zWKnp5buVZqys9x, the V4 pool manager is TVjuTE3V5bMVdpfNhid8kD2v35T2k1u1Br and the Universal Router is TQqgNg13s2DjvXhW1ky4v6TsR8wZGvb7Y4, all from the docs.

SunSwap V3 and V4 traded $58.9 million on Tron on 19 November 2026

According to DexPaprika data pulled at 08:17 UTC on 19 November 2026, the Tron DEX list holds two rows, both SunSwap versions. V3 was marginally ahead:

DEX Volume, 24h Share Trades Pools
SunSwap V3$29,826,27850.61%5,02436
SunSwap V4$29,110,67049.39%2,67124
Two SunSwap versions$58,936,948100%7,69560

Source: DexPaprika GET /networks/tron/dexes, 19 November 2026, 08:17 UTC. The shares are of DexPaprika-indexed volume, the rows DexPaprika lists for Tron. SunSwap's own protocol statistics also report V2 and Curve volume, which this list does not include, so SunSwap's full footprint is larger than the table shows.

V3 and V4 split the day almost evenly, with V4 trading larger tickets: about $10,900 per trade against about $5,900 on V3, by simple division of the table.

Where the volume trades: TRX and USDT

The busiest pool on each version is a TRX and USDT pair. On V3 the leader is a WTRX/USDT pool (TSUUVjysXV8YqHytSNjfkNXnnB49QDvZpx, 0.05% fee) at $28.6 million and 4,350 trades. On V4 it is a TRX/USDT pool at $27.9 million and 1,749 trades. SunSwap's own API reported about $28.6 million for that V3 pool in the same minutes, so the two sources agree.

Reading SunSwap pools over REST with DexPaprika

SunSwap's API is the primary source for SunSwap itself. DexPaprika covers the same pools in one shape across many chains, so one client reads SunSwap next to Base, Solana or Ethereum. No key, no signup:

curl "https://api.dexpaprika.com/networks/tron/pools/search?dex_name=sunswap_v3&limit=3"

That returns HTTP 200 and an object shaped {results, has_next_page, next_cursor, query}. Each row carries id, dex_id, dex_name, chain, volume_usd_24h, volume_usd_7d, volume_usd_30d, liquidity_usd, transactions_24h, price_usd, fee, created_at, the price_change_percentage_* windows and a tokens array. Use dex_name=sunswap_v4 for V4. Candles for any pool come from the OHLCV endpoint, and a relative start keeps the call valid whenever you run it:

curl "https://api.dexpaprika.com/networks/tron/pools/TSUUVjysXV8YqHytSNjfkNXnnB49QDvZpx/ohlcv?start=-12h&interval=1h&limit=5"

Individual swaps come from /networks/tron/pools/{address}/transactions, which needs a Dev or Pro plan. Without a key it answered HTTP 403 on 19 November.

Pool search and recent candles need no key. A free key from console.dexpaprika.com raises the rate and the quota, with current numbers for every tier on the pricing page rather than here, because they move. Free-tier data can be up to 60 seconds behind; real-time is the paid tier.

Common questions

Does SunSwap have an API?

Yes. SUN.io publishes a REST API at open.sun.io that covers prices, pools, pairs, positions, transactions and protocol statistics, plus a Universal Router, open contract repositories, a CLI and an MCP server. Details are in its docs at docs.sun.io.

Which DEX leads Tron by volume?

SunSwap. On 19 November 2026 its V3 and V4 pools carried all of the Tron DEX volume DexPaprika indexes, about $58.9 million in 24 hours, split almost evenly between the two versions.

What is SunSwap V3?

SunSwap V3 is the concentrated liquidity version of the exchange, where liquidity providers pick price ranges. V4 builds on that with hooks and a single pool manager contract, as SUN.io describes in its docs.

Which SunSwap pool trades the most?

On 19 November 2026 it was a WTRX/USDT pool on V3 at $28.6 million of 24 hour volume, followed by a TRX/USDT pool on V4 at $27.9 million.

How do I read SunSwap pool data with one request?

Call DexPaprika's /networks/tron/pools/search?dex_name=sunswap_v3 endpoint, which works without a key, or SunSwap's own /apiv2/pools endpoint.

How these numbers were measured

Everything above was read off a live source on 19 November 2026.

The DEX table is one call to DexPaprika's DEX list for Tron (GET /networks/tron/dexes), pulled at 08:17 UTC, which returns every indexed DEX on the chain in a single response. Each share is a row's volume_usd_24h divided by the sum of the two rows, so the percentages describe DexPaprika-indexed DEX volume on Tron.

The pool figures come from DexPaprika pool search for each SunSwap version a few minutes later, so they drift slightly from the DEX-level snapshot. The OHLCV call returned HTTP 200 without a key and the transactions call returned HTTP 403. The cross-check used SunSwap's /apiv2/pools endpoint. SUN.io's page count comes from the docs sitemap, the repository count from the GitHub API, and the SUN rank from the CoinPaprika search.

Every volume is a rolling 24 hour window, so expect it to have moved by the time you read this.

Full REST reference at docs.dexpaprika.com, DexPaprika's SunSwap page and Tron overview, and SUN on CoinPaprika. SunSwap's own entry points: sun.io, the SUN.IO API docs, the Universal Router, SUN CLI and SUN MCP Server.

The same question for other DEXes: what PancakeSwap documents for BNB Smart Chain and what the Uniswap API returns.

Share this guide
Written by Mateusz Sroka

Original CoinPaprika guide.

Report a correction
All guides

Cryptocurrencies are highly volatile and involve significant risk. You may lose part or all of your investment.

All information on Coinpaprika is provided for informational purposes only and does not constitute financial or investment advice. Always conduct your own research (DYOR) and consult a qualified financial advisor before making investment decisions.

Coinpaprika is not liable for any losses resulting from the use of this information.