Skip to main content
Version: nightly

AX Exchange

AX Exchange is the world's first centralized and regulated exchange for perpetual futures on traditional underlying asset classes. It combines innovations from digital asset perpetual exchanges with the safety, security, and risk management of traditional futures exchanges.

warning

This integration is currently under construction and not yet ready for use.

Key features

  • Perpetual contracts that never expire, eliminating rollover costs.
  • Cross-margin trading across multiple assets.
  • Real-time market data, positions, and risk visibility.
  • Licensed under the Bermuda Monetary Authority (BMA).

Supported asset classes

Asset ClassExamples
Foreign exchangeEUR/USD, GBP/USD, USD/JPY.
Stock indexesS&P 500, Nasdaq 100.
Interest ratesSOFR, Treasury yields.
MetalsGold, Silver.
EnergyCrude Oil, Natural Gas.

Adapter overview

This adapter is implemented in Rust, with optional Python bindings for use in Python-based workflows. The adapter uses REST for reference data and order management, with WebSocket for real-time market data and execution updates.

Components

The adapter includes multiple components which can be used together or separately depending on the use case:

  • AxHttpClient: Low-level HTTP API connectivity.
  • AxMdWebSocketClient: Market data WebSocket connectivity.
  • AxOrdersWebSocketClient: Orders WebSocket connectivity.
  • AxDataClient: Market data feed manager.
  • AxInstrumentProvider: Instrument parsing and loading functionality.
note

Most users will define a configuration for a live trading node and won't need to work with these lower-level components directly.

AX Exchange documentation

AX Exchange provides documentation for users:

It's recommended you refer to the AX Exchange documentation in conjunction with this NautilusTrader integration guide.

API credentials

API credentials are required for authentication. Provide these via environment variables.

Required credentials

Environment VariableDescription
AX_API_KEYYour AX Exchange API key (e.g., ak_...).
AX_API_SECRETYour AX Exchange API secret.

Optional 2FA credentials

If your account has two-factor authentication (2FA) enabled:

Environment VariableDescription
AX_TOTP_SECRETBase32 TOTP secret for auto-generating 2FA codes.

This is the base32 secret displayed when you set up 2FA (often shown as a QR code or text).

Environment selection

Environment VariableDescription
AX_IS_SANDBOXSet to true for sandbox environment (default), false for production.

Authentication

AX Exchange uses bearer token authentication via HTTP headers:

  1. API key and secret (with optional TOTP) obtain a session token via /authenticate.
  2. The session token is used as a bearer token for subsequent REST and WebSocket requests.

Session tokens expire after a configurable period (default: 3600 seconds).

Configuration

API endpoints

EnvironmentHTTP APIMarket Data WebSocketOrders WebSocket
Sandboxhttps://gateway.sandbox.architect.exchange/apiwss://gateway.sandbox.architect.exchange/md/wswss://gateway.sandbox.architect.exchange/orders/ws
Productionhttps://gateway.architect.exchange/apiwss://gateway.architect.exchange/md/wswss://gateway.architect.exchange/orders/ws