Integration Overview

View as Markdown

REST Base URL: https://api.6mm.com
WebSocket URL: wss://6mm.com/ws

This documentation is intended for external systems integrating with the 6MM API service. It covers login, JWT authentication, API Key management, API Key HMAC signing, account queries, orders, positions, market data, and WebSocket streams.

Account provisioning and funding preparation are handled through platform-side processes. This documentation only describes externally callable API service endpoints.

Service Endpoints

TypeEndpoint
REST APIhttps://api.6mm.com
WebSocketwss://6mm.com/ws

Integration Flow

Recommended integration sequence:

  1. Log in with the account provided by the platform and obtain an accessToken.
  2. For server-side programmatic access, create an API Key with JWT first, and securely store the one-time returned apiSecret.
  3. Private queries, order endpoints, and position endpoints can be called with either Authorization: Bearer <accessToken> or API Key signing.
  4. For private WebSocket streams, create a listenKey first, then connect to wss://6mm.com/ws?listenKey=....
  5. Market data REST endpoints and public WebSocket channels do not require authentication.

Authentication Choice

ScenarioRecommended method
Frontend user actionsJWT
Server-side programmatic callsAPI Key + HMAC signature
API Key creation, update, and deletionJWT
Public market REST / public WebSocketNo authentication required

Documentation Scope

This documentation covers login, JWT authentication, API Key management, API Key HMAC signing, account queries, orders, positions, market data, and WebSocket streams.