Dex
API Reference
DEX REST and WebSocket APIs
REST API
Base URL: https://dex.lux.network/v1
WebSocket
const ws = new WebSocket('wss://dex.lux.network/v1/ws');
ws.send(JSON.stringify({
op: 'subscribe',
channel: 'orderbook',
market: 'LUX-USDC'
}));Market Data
| Channel | Description |
|---|---|
orderbook | Real-time order book updates |
trades | Trade executions |
candles | OHLCV candle data |
ticker | 24h price and volume |