πW Swap Trade Volume API
This document describes the W Swap Trade Volume API endpoint that returns the last 24 hours of traded volume (in USD) for a specific trading pair.
Endpoint
Purpose
Request
Example
GET https://oracle.w-chain.com/api/w-swap/volume/2Success Response
{
"vol24h": 12345.67,
"pair": "USDT/WCO"
}Field Details
Error Responses
How Volume Is Calculated
trade_pairs Reference
trade_pairs Referenceid
name
platform
pair_address
token0_address
token1_address
token0_decimals
token1_decimals
fee
usd_value_from
wave_pid
Note on wave_pid
wave_pidUsage Examples
cURL
JavaScript (fetch)
Implementation Notes
Related Endpoints
Last updated