← Blog
Open-Source-Börseninfrastruktur · v1.0.0-nightly.20261105
09.11.2026Release

Open Exchange v1 nightly: one order and ledger core

Update, 2026-11-26: the C++ gateway now exists, in its own repository openexch/gateway, and the live demo runs the new stack: the order and ledger core, the matching engine, the gateway and the trading UI. The post below is as it was published.

Open Exchange v1.0.0-nightly.20261105 is tagged across five repositories. It is a nightly prerelease, not something to run with real money, and it is the first release built on the new architecture.

The short version: the order management system no longer exists as a separate service. Order lifecycle, pre-trade risk and fund holds now run inside the ledger cluster, on the same replicated log as the money. Everything around that core is C++.

Why merge the orders into the ledger

Until v0.5 an order lived in two places. The order itself was a row in PostgreSQL, owned by a Java OMS. The money behind it, the hold that reserves your funds, lived in the Assets Engine, a separate Raft cluster. Every order had to keep those two stores in agreement.

Most of our hardest problems were exactly that agreement. A hold placed but the order row never written. An order cancelled while its hold release was still in flight. A request id table in PostgreSQL so a retried request would not place a second order. An OMS restart that had to rebuild its state from the database before it could accept anything. Each one had a fix, and each fix was more code whose only job was to make two systems pretend to be one.

So we made them one. In v1 an order and its hold are decided by the same entry in the same log. There is nothing to reconcile, because there is only one source of truth: the replicated log of a three node cluster. PostgreSQL is still there, but only for history (orders, trades, balances over time). Nothing on the money path reads from it or waits on it.

What moving taught us

Moving logic into a replicated state machine is not a copy and paste. A cluster replays its log on every node, so everything it does must come out the same on every node, every time. Writing the old OMS logic down in that discipline surfaced things that had been quietly wrong:

  • Wall clock time was everywhere. Order timestamps, rate limits, good-till-date expiry and timeouts all read the local clock. In the core they all use cluster time, which every replica agrees on.
  • Iteration order was decided by a hash map. Which expired orders got cancelled first depended on how a hash table happened to be laid out. In the core every walk is in key order.
  • A protective buy stop could not work. When a buy stop-loss triggered, the old stack sent the market order with a zero budget, and the matching engine rejected it. In the core a triggered buy stop carries a real budget, and a test that fails without the fix keeps it that way.

Snapshots that prove themselves

The ledger used to write its snapshot as a single message. That has a hard ceiling, an eighth of the snapshot term length, and above it the write fails. It fails on all three nodes, at the same log position, because they are all deterministic. Determinism is what makes a cluster correct, and here it would have stopped the whole cluster at once.

Snapshots are now written in chunks, wrapped in an envelope with a length and a CRC32C checksum. On restore, a node rebuilds the ledger and checks its invariants (locked funds equal the sum of open holds, for every user and asset) before it serves anything. A snapshot that fails either check is refused, loudly, instead of becoming the ledger.

C++ around the core

The two engines stay Java. Around them the new parts are C++: a forwarder that carries orders from the core to the matching engine, and a settlement bridge that carries fills back. Aeron ships no cluster client outside Java, so we wrote one; both tools share it.

Cluster clients now authenticate, and each kind of session can send only its own commands. A settlement bridge cannot deposit funds, and a gateway cannot rewrite the journal settings.

What we verified before tagging

  • Two independent builds of every Java jar are byte-equal.
  • Exit drills, three runs each, all passed: killing the media driver, the driver connect timeout, starting a fresh cluster from genesis across two lives, and a core leader change.
  • Money conservation and hold checks passed in every run.
  • The Java suites are green; the C++ suite is green on x86_64 and on aarch64.

What it does not do yet

  • There is no user-facing gateway. No REST, no WebSocket, no gRPC, no trading UI. Orders go in through the cluster client or the probe tools. The C++ gateway is the next thing we build.
  • Order events can be missed at a leader change. Order updates are sent to clients on a best effort basis across a change of core leader, so a client can miss an order's final event. We saw it in one of seven leader change drills. Balances, holds and trades are not affected, because they come from the replicated log. A resync request for order events is planned.
  • The attached C++ binaries are linux x86_64 only.
  • The live demo still runs v0.5. trade.openexchange.dev is the previous stack, with its separate OMS and trading UI. It moves to the new core when the gateway exists.

The release notes on each repository list the exact commits and checksums.

This post has no performance figures. v1 end to end numbers will be published once they are measured on the new architecture.
Open Exchange

Ein Börsenkern, den Sie kostenlos nutzen können. Wir betreiben ihn für Sie zu den Serverkosten plus einer Wartungsgebühr.

github.com/openexch

Apache 2.0 · v1.0.0-nightly.20261105 ist eine Nightly-Vorabversion und nicht für den Produktivbetrieb gedacht: Es gibt noch keine eingefrorene öffentliche API, und es wurde noch kein externes Sicherheitsaudit durchgeführt. Bis dahin sollte es kein echtes Geld verwalten. Die Live-Demo läuft auf dem Order- und Ledger-Kern mit dem C++-Gateway, das noch kein getaggtes Release hat. Open Exchange ist die Infrastruktur, auf der Sie eine Börse aufbauen; KYC/AML, Verwahrung, Fiat, Identität und Compliance liegen in der Verantwortung des Integrators.

Die Webanalyse nutzt eine dauerhafte, zufällige Browserkennung und Speicherung in der EU; Session-Aufzeichnungen maskieren Eingaben. Do Not Track und Global Privacy Control werden respektiert. Details.

Open Exchange · v1.0.0-nightly.20261105Messwerte mit Quellenangabe