Spot market core
Order lifecycle, price-time priority matching and settlement, with deterministic state transitions built for recovery.
Spot domainOWN THE STACK · JAVA × GO
Two complete implementations of a digital-asset exchange, built on one contract-first blueprint. Spot and derivatives, market making, custody, risk, market data, institutional APIs, frontends and full-link observability — delivered as source you can build, deploy and extend.
Interface shown is an illustrative demo. No live market data.
CAPABILITY MAP
Not a feature list. A set of owned business domains with clear boundaries, shared contracts and one observability model — each one running here as a live scene.
Order lifecycle, price-time priority matching and settlement, with deterministic state transitions built for recovery.
Spot domainPositions, margin mode, funding cycles and liquidation paths held to the same ledger invariants as spot.
Derivatives domainContract specification, order and position tracking, with payoff and settlement rules kept explicit.
Options domainOne ordered writer per instrument, queue fairness and replay-safe events from gateway to fill.
Matching coreQuote requests, negotiated blocks and settlement recorded with the same audit trail as the public book.
OTC deskDeposits, withdrawals, hot and cold separation, on-chain reconciliation and auditable approval paths.
Custody domainMargin, exposure, pre-trade checks and liquidation with explicit limits and fail-closed defaults.
Risk domainAppend-only postings, balance conservation and reconciliation invariants — every movement traceable.
Clearing domainDepth, trades and klines with bounded backpressure and consistent snapshots for every consumer.
Market dataSigned REST and WebSocket access with per-key credentials, replay protection and independent traffic policy.
API programTOTP multi-factor access, role-based permissions and an audit trail for every privileged action.
Admin & identityOne message model across email, SMS and chat channels, with receipts and retries as first-class states.
Common platformScenes are generated in the browser from synthetic data. They illustrate system behaviour; they are not screenshots of a running venue.
INTERFACE PREVIEW
Generated tours of the surfaces your team will operate: the trading terminal, the matching and ledger path, full-link traces, the risk console and the notification platform.
Guided previews
Each loop is a generated interface demo with sample data. Switch with the list or the arrow keys.
Order entry, depth, candles and positions in one workspace — the surface your traders live in.
An order's journey from gateway to risk, matching core and ledger — with invariants checked at every boundary.
HTTP, WebSocket, gRPC, matching, MySQL and Kafka linked in a single causality chain, ready for investigation.
Withdrawal approvals, exposure review and an audit trail for every privileged action.
One message model, multiple delivery channels, with receipts and retries handled as first-class states.
All visuals are illustrative demos generated with sample data — not live market data, and not screenshots of any client system.
LIVE SYSTEM
The system home page is live: market overview, spot, futures, options, wallet and account entry points in one workspace. This is the build our team runs today — the same system described across this site.
Development preview · sample data. The panel above is a schematic of the running system; the button opens the real environment.
DUAL STACK
Choose the runtime that fits your team and your operations. Both stacks implement the same domain semantics from one contract source — and neither one is a port of the other.
JVM · enterprise ecosystemgoroutines · lean runtimeJVM · ENTERPRISE ECOSYSTEM
For teams already invested in the JVM: mature libraries, familiar operations and a deep hiring pool.
GOROUTINE · EFFICIENT CONCURRENCY
For lean, high-density operations: compact binaries, predictable concurrency and low operational overhead.
ONE CONTRACT SOURCE
Both implementations speak the same semantics: internal gRPC calls, external HTTP and WebSocket boundaries, and Kafka events keep identical meanings across stacks.
| Dimension | Java | Go |
|---|---|---|
| Runtime | JVM | Goroutines |
| Concurrency | Thread pools & async I/O | Goroutines & channels |
| Service shape | Spring-based services | Composable packages |
| Internal contracts | gRPC · proto | gRPC · proto |
| External edge | HTTP + WebSocket | HTTP + WebSocket |
| Event backbone | Kafka | Kafka |
| Frontends | Admin · H5 · App | Admin · H5 · App |
| Operations | Kubernetes · OTLP | Kubernetes · OTLP |
| Best fit | Enterprise JVM teams | Lean, high-density teams |
Need help choosing a stack?
Compare in detailFULL-LINK OBSERVABILITY
Tracing is not a dashboard bolted on afterwards. One trace identity runs from the edge through matching, storage and async workers.
Inbound requests and streaming sessions
Internal service contracts
Batch spans with links for async causality
Ledger and business transactions
Cache and coordination paths
Document reads and writes
Background jobs and scheduled tasks
Custody, liquidity and provider APIs
Context crosses HTTP, WebSocket, gRPC and messaging without manual wiring in business code.
Batch spans and links keep message-driven flows connected without changing ordering or commit semantics.
Structured logs carry trace_id and span_id, so an investigation never loses the thread.
Telemetry excludes payloads, credentials and query values; sampling is an explicit policy.
COMMON PLATFORM
Shared capabilities are owned, versioned and independently replaceable — not copy-pasted into each service.
NOTIFY
A dedicated multi-channel notification service with template planning, delivery receipts and retry semantics.
RUNTIME
Trace, metrics, logs and client components per language, each with an independent version and release path.
IDENTITY
TOTP-compatible multi-factor authentication, role-based permissions and privileged-action audit.
FRONTEND
One design language behind every surface: design tokens, typed API and realtime clients, and a native UI kit for the mobile shell.
DELIVERY
Kubernetes manifests, pipeline-gated releases, runbooks and rollback paths for every service.
ENGINEERING DISCIPLINE
Exchange software is judged on what happens when something goes wrong. These rules are enforced in the architecture, not in a checklist.
Every balance movement has one ordered writer. Concurrency never becomes a second source of truth.
Retries, timeouts and UNKNOWN outcomes are treated as normal states, never as exceptions to clean up later.
Every debit has a matching credit. Reconciliation is a first-class workflow, not an afterthought.
Proto contracts, explicit error semantics and stable interfaces keep two implementations honest.
We publish design intent and engineering discipline. Measured figures and internals stay in the NDA room.
COOPERATION
Source licensing, direct delivery or a joint build: the engagement follows your team, not the other way around. Every model ends with the codebase and its documentation in your hands.
Own the codebase
Full platform source in Java, Go or both, with documentation, deployment assets and a defined update window.
Best forTeams with engineering capacity
Source termsWe ship with you
We deploy, configure and integrate with your team on your infrastructure, through go-live and handover.
Best forOperators who need speed
Delivery scopeCo-build the next line
A shared engineering team for new product lines, regional requirements and third-party integrations.
Best forEstablished operators
Joint modelSolve one hard problem
A matching layer, custody domain, risk engine or observability stack, integrated into an existing platform.
Best forPlatforms with a specific gap
Module scopeSource code is part of the delivery under a signed licence and is never published on this site. The full cooperation page covers support and operations; pricing is scoped by platform scope, licence model and support level, shared after an NDA discussion.
HOW IT STARTS
A structured path with written scope and acceptance criteria — no vague demos, no open-ended discovery.
SCOPING
Goals, scope, constraints and timing. Short — and an engineer joins the first conversation.
TECHNICAL · NDA
Architecture, matching core, data and observability internals: the parts that stay off this site.
PROPOSAL
Module scope, licence model, delivery plan and acceptance criteria, written down.
DELIVERY
Staged delivery, acceptance, deployment support and source handover with documentation.
INSIGHTS
How the platform is designed to behave: domain boundaries, throughput design, fund safety, observability and operations.
Work with ffex: full source-code licensing, turnkey delivery, domain modules, joint builds and scoped pilots — plus contact details.
Read insightHow ffex makes a distributed exchange debuggable: end-to-end traces across every hop, structured logs, hardened admin access and pipeline-gated releases.
Read insightCore fund-safety disciplines in ffex: decimal-only money, conservation invariants, idempotency, single writers, reconciliation and custody.
Read insightLET'S TALK
A short message about your scenario is enough to start: greenfield or existing platform, product mix, and your timeline.
We reply in English and Chinese. No obligation, no sales deck — an engineer joins the first call.