API Documentation

API Documentation

XBO Market Kit exposes a WordPress REST API that proxies data from the XBO Public API. All endpoints require no authentication.

REST API Endpoints

EndpointMethodParametersDescription
/wp-json/xbo/v1/tickerGETsymbols (comma-separated, SLASH format)Returns price, 24h change, volume, and sparkline data for specified trading pairs
/wp-json/xbo/v1/moversGETmode (gainers|losers), limitReturns top gaining or losing pairs by 24h percentage change
/wp-json/xbo/v1/orderbookGETsymbol (UNDERSCORE format), depthReturns order book bids and asks for a trading pair
/wp-json/xbo/v1/tradesGETsymbol (SLASH format), limitReturns recent trades for a trading pair
/wp-json/xbo/v1/slippageGETsymbol (UNDERSCORE format), side, amountCalculates estimated execution price and slippage from order book
/wp-json/xbo/v1/trading-pairsGETnoneReturns all available trading pairs with metadata

Base URL

All endpoints are available at your WordPress site URL. For example:

GET https://your-site.com/wp-json/xbo/v1/ticker?symbols=BTC/USDT,ETH/USDT

Interactive API Explorer

Test API endpoints directly in your browser with the interactive explorer below:

Important Notes

  • All data is proxied server-side from the XBO Public API (no CORS issues)
  • Responses are cached using WordPress transients for optimal performance
  • No API key or authentication is required
  • Rate limiting is handled server-side by the caching layer
  • Symbol formats: Use SLASH format (BTC/USDT) for ticker and trades, UNDERSCORE format (BTC_USDT) for orderbook and slippage

Integration Examples

For code examples and integration patterns, see the Integration Guide.