Introduction
Exchange Web provides a comprehensive REST API and WebSocket connection for real-time cryptocurrency trading data. The backend powers market data retrieval, order placement, and live updates for order books and trades.Base URLs
Authentication
The API usesuser_id based authentication. Create a user account first:
user_id in order creation requests for authentication.
Available Endpoints
The REST API provides the following endpoints:| Endpoint | Method | Description |
|---|---|---|
/depth | GET | Retrieve order book depth for a market |
/trades | GET | Get recent trades for a market |
/klines | GET | Fetch candlestick (OHLCV) data |
/tickers | GET | Get all market tickers |
/ticker | GET | Get specific market ticker |
/order | POST | Create a new order |
/users | POST | Create a new user account |
All market symbols follow the format:
BASE_QUOTE (e.g., SOL_USDC, SOL_USDC)WebSocket Events
Real-time data is available through WebSocket subscriptions:- depth - Order book updates
- trade - Live trade executions
Quick Start
Rate Limits
Please implement appropriate rate limiting in your application to avoid overwhelming the backend. Consider caching frequently accessed data like tickers.
Next Steps
REST Endpoints
Detailed documentation for all REST API endpoints
WebSocket Events
Real-time data streaming with WebSocket
Data Types
TypeScript interfaces and data structures