Skip to main content

Matching Engine

Alpha Sec. is powered by a fully on-chain Matching Engine designed for high-performance, deterministic, and transparent trade execution. Unlike systems that rely on off-chain matchers or centralized sequencing, Alpha Sec. executes all order matching logic directly within the rollup’s verifiable on-chain environment.

On-Chain Matching Process

  • Order Submission: Traders submit actions such as placing or canceling orders through Alpha Sec.’s user interface or API endpoints.
  • Deterministic Ordering: Transactions are processed in the canonical order in which they are confirmed within the rollup block.
  • Matching Logic: The Matching Engine evaluates the updated orderbook on-chain and matches orders based on strict price-time priority.
  • Settlement : All matched trades are written to the rollup state and finalized on Kaia mainnet guaranteeing tamper-proof execution.

This architecture ensures:

  • Fully deterministic, globally consistent trade outcomes
  • Front-running and MEV resistance through transparent ordering
  • On-chain auditability of every trade and match decision

Matching Rules & Market Structure

The Matching Engine enforces key rules to maintain fairness and market integrity:

  • Price-Time Priority: Orders are matched by best price first, and among identical prices, earlier transactions are matched first.
  • Tick Size: Defines the minimum price increment (e.g., 0.01 USDC), preventing excessive fragmentation of the orderbook.
  • Lot Size: Sets a minimum order size (e.g., 10 KAIA), reducing spam and conserving on-chain resources.

These constraints create a high-integrity trading environment optimized for both retail and institutional strategies.