CEX (cexd) Internal Alternative Trading System with CLOB matching engine, pre/post-trade compliance, and regulatory reporting.
Feedbackcexd is Lux's internal Alternative Trading System (ATS). It provides a central limit order book matching engine with integrated pre-trade compliance gating, post-trade surveillance, and regulatory reporting for FINRA, SEC, and international equivalents.
Client -> Gateway (HTTP/JWT) -> Engine -> Matcher (CLOB)
|
Compliance (pre-trade)
|
Surveillance (post-trade)
|
Reporting (FINRA/ATS)
FeedbackAll endpoints require JWT authentication (via CEX_JWT_SECRET). In dev mode (no secret set), endpoints are open.
Method Path Description GET/api/v1/marketsList all active markets GET/api/v1/markets/{symbol}Get market details GET/api/v1/markets/{symbol}/bookOrder book snapshot (?depth=20)
Method Path Description POST/api/v1/accounts/{accountId}/ordersSubmit order (compliance-gated) GET/api/v1/accounts/{accountId}/ordersList account orders GET/api/v1/accounts/{accountId}/orders/{orderId}Get order details DELETE/api/v1/accounts/{accountId}/orders/{orderId}Cancel order
Method Path Description POST/api/v1/accounts/{accountId}/registerRegister with compliance status GET/api/v1/accounts/{accountId}/statusGet compliance status
Method Path Description GET/api/v1/admin/reports/finraFINRA OATS reports GET/api/v1/admin/reports/atsATS-N quarterly report GET/api/v1/admin/surveillance/alertsSurveillance alerts (?status=open) POST/api/v1/admin/markets/{symbol}/haltHalt trading (circuit breaker) POST/api/v1/admin/markets/{symbol}/resumeResume trading
Type Description limitLimit order at specified price marketMarket order at best available price
Value Description GTCGood 'til cancelled IOCImmediate or cancel FOKFill or kill DAYDay order (cancelled at market close)
FeedbackEvery order submission passes through the compliance engine before reaching the matcher:
Feedback
Sanctions check — blocked accounts cannot trade
Feedback
PEP screening — direct/related PEPs require EDD + source of funds verification
Feedback
Adverse media — flagged accounts require EDD completion
Feedback
FATF high-risk country — requires enhanced KYC (level 3)
Feedback
KYC level — per-jurisdiction, per-asset-class minimums (30+ jurisdictions)
Feedback
Offering-type gating — Reg D (accredited only), Reg S (non-US only), etc.
Feedback
Order size limits — per-account max order size and daily limits
Feedback
Market status — halted markets reject all orders
Env Var Default Description CEX_JWT_SECRET(none) JWT signing secret; empty = dev mode CEX_JWT_ISSUERhttps://hanzo.idExpected JWT issuer CEX_ADDR:8080Listen address
Feedback
Repository: luxfi/cex
Feedback
Key packages: pkg/engine, pkg/compliance, pkg/surveillance, pkg/reporting, pkg/gateway
How is this guide?
Good BadLast updated on