ZerCEX Public API

📋 Get Available Markets

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"
  }
]
    

📈 Get Ticker Data

Endpoint: /api/v1/ticker

Method: GET

Description: Returns the latest price and volume data for a specific market.

Parameters:

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
}
    

📊 Get Platform Statistics

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
}