WebSocket API
Real-time market data and account updates via WebSocket
Overview
The Moonbase WebSocket API provides real-time access to market data and account updates. WebSocket connections offer event-driven responses without the need to poll the server, making it the most efficient way to receive up-to-date information.
Quick Start
- Overview - Introduction to the WebSocket API
- Authentication - Learn how to authenticate for private channels
Public Channels
These channels don't require authentication:
- Book Channel - Real-time orderbook updates with bids and asks
- Trades Channel - Trade execution data
- Ticker Channel - Best bid/ask price updates
Private Channels
These channels require authentication:
- Orders Channel - User-specific order updates and trade matches
- Portfolio Channel - Real-time portfolio updates including balances and statistics
Trading Operations
- Trading - Create and cancel orders via WebSocket
Connection Endpoints
Development
wss://ws.dev.mbhq.net/wsProduction
wss://ws.mbhq.net/wsSupported Products
All public channels support the following trading pairs:
BTC-VNDETH-VNDSOL-VNDXRP-VND
Getting Started
- Connect to the WebSocket endpoint
- Subscribe to public channels for market data
- Authenticate to access private channels
- Use trading operations to create and manage orders
For detailed information, start with the Overview page.