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
| Endpoint | Method | Parameters | Description |
|---|---|---|---|
/wp-json/xbo/v1/ticker | GET | symbols (comma-separated, SLASH format) | Returns price, 24h change, volume, and sparkline data for specified trading pairs |
/wp-json/xbo/v1/movers | GET | mode (gainers|losers), limit | Returns top gaining or losing pairs by 24h percentage change |
/wp-json/xbo/v1/orderbook | GET | symbol (UNDERSCORE format), depth | Returns order book bids and asks for a trading pair |
/wp-json/xbo/v1/trades | GET | symbol (SLASH format), limit | Returns recent trades for a trading pair |
/wp-json/xbo/v1/slippage | GET | symbol (UNDERSCORE format), side, amount | Calculates estimated execution price and slippage from order book |
/wp-json/xbo/v1/trading-pairs | GET | none | Returns 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.
