Moonbase Docs

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:

Private Channels

These channels require authentication:

Trading Operations

  • Trading - Create and cancel orders via WebSocket

Connection Endpoints

Development

wss://ws.dev.mbhq.net/ws

Production

wss://ws.mbhq.net/ws

Supported Products

All public channels support the following trading pairs:

  • BTC-VND
  • ETH-VND
  • SOL-VND
  • XRP-VND

Getting Started

  1. Connect to the WebSocket endpoint
  2. Subscribe to public channels for market data
  3. Authenticate to access private channels
  4. Use trading operations to create and manage orders

For detailed information, start with the Overview page.