Endpoint: /api/v1/markets
Method: GET
Description: Returns the list of available trading pairs.
Example Request:
GET https://zercex.xyz/api/v1/markets
Example Response:
[ { "symbol": "BTC/USDC", "base_currency": "BTC", "quote_currency": "USDC" }, { "symbol": "ZERC/USDC", "base_currency": "ZERC", "quote_currency": "USDC" } ]
Endpoint: /api/v1/ticker
Method: GET
Description: Returns the latest price and volume data for a specific market.
Parameters:
market
– e.g. ZERC/USDC
Example Request:
GET https://zercex.xyz/api/v1/ticker?market=ZERC/USDC
Example Response:
{ "symbol": "ZERC/USDC", "last_price": "0.00600000", "high": "0.00900000", "low": "0.00500000", "volume": "203.07687855", "price_change_percent": 0, "timestamp": 1750677360 }
Endpoint: /api/v1/stats
Method: GET
Description: Returns global platform statistics such as total 24h volume, number of users, trades, and markets.
Example Request:
GET https://zercex.xyz/api/v1/stats
Example Response:
{ "volume_24h": "20345.12451200", "markets_count": 5, "users_count": 128, "trades_count": 7821, "updated_at": 1750678200 }