Back to ATLAX
ATLAX · Technical Audit Mode · Pre-testnet
// 03 / 15

ATLAX Match Engine

ATLAX Match Engine is designed to provide CEX-level trading performance while routing matched fills into transparent XRPL EVM settlement and risk contracts.

// live.orderbook · xrp-perp
PriceSize (XRP)Total
2.193719.9K149.0K
2.191923.1K129.1K
2.190632.3K106.1K
2.188831.8K73.7K
2.187331.3K42.0K
2.186010.6K10.6K
Mid2.1842Spread 0.153%
2.182640.2K40.2K
2.18059.6K49.8K
2.179538.6K88.4K
2.177918.3K106.6K
2.17657.4K114.0K
2.174730.2K144.2K
Simulator
Press Simulate Market Buy 50K to walk the order book.
// matching.rules
  1. 1.Better price executes first.
  2. 2.Same price executes by earlier timestamp.
  3. 3.Market orders consume available liquidity until filled or slippage limit is hit.
  4. 4.Post-only orders cancel if they would immediately take liquidity.
  5. 5.Reduce-only orders cannot increase exposure.
  6. 6.Liquidation orders receive priority during liquidation events.
  7. 7.All fills generate settlement messages and event logs.
// matching.pseudocode
for incoming_order in order_queue:
    validate_order(incoming_order)
    while incoming_order.remaining_size > 0:
        best_opposite_order = orderbook.get_best_price()
        if price_crosses(incoming_order, best_opposite_order):
            fill = match(incoming_order, best_opposite_order)
            emit_fill(fill)
            send_to_settlement(fill)
        else:
            rest_order_on_book(incoming_order)
            break
// matching.modules
Order Router

Receives signed orders from user wallets. Checks market, side, size, leverage, reduce-only, post-only, and slippage limits.

Matching Engine

Matches bids and asks using price-time priority. Produces deterministic fill messages.

Fill Verifier

Converts matched trades into settlement messages. Checks price, size, account state, and nonce validity.

Market Data Publisher

Streams order book, trades, open interest, funding, and liquidation data to dashboards and APIs.