🛴Dex API
This section provides access to PiperX decentralized exchange (DEX) statistics, including Total Value Locked (TVL) and trading volume across all liquidity pools. > Useful for dashboards, analytics
Overview
Use this endpoint to get TVL and total volume statistics of PiperX DEX.
Endpoint
[GET]
https://piperxdb.piperxprotocol.workers.dev/api/piperxapi/tvl
Example Request
curl https://piperxdb.piperxprotocol.workers.dev/api/piperxapi/tvl
Example Response
{
"dex": {
"id": "piperx",
"name": "PiperX",
"totalVolumeUSD": "49432841143971",
"totalVolumeNative": "15038256415533119426220899",
"tvlUSD": "6979210444605",
"tvlNative": "1034401251952740102208458"
}
}
tvlUSD
has 6 decimals and tvlNative
has 18 decimals.
Last updated