Financial infrastructure
Order books, matching engines, ledgers, money types, payments and low-latency trading plumbing.
Markets & trading
Matching buyers and sellers, fast and fair.
Limit order book
lowPer-symbol store of resting orders as FIFO queues per price level; array-indexed ticks plus intrusive lists give O(1) add, cancel and best-price lookup.
Matching engine
mediumSingle-threaded, deterministic loop that journals sequenced orders, matches them by price-time priority against a limit order book and emits trades.
Pre-trade risk checks
lowConstant-time gate in front of order entry that rejects fat-finger, over-limit and runaway orders using worst-case exposure counted over open orders.
Market data feeds (ITCH / MoldUDP64)
lowExchange order-by-order data as fixed binary messages in sequenced UDP multicast packets; receivers dedupe A/B lines, detect gaps by sequence number and recover.
FIX protocol (session layer)
lowTag=value order-entry protocol over TCP with per-direction sequence numbers, heartbeats and resend so sessions survive disconnects without losing or duplicating orders.
call auction clearing
Planned.
execution algorithms
Planned.
market impact models
Planned.
market making inventory model
Planned.
order lifecycle state machine
Planned.
total order sequencer
Planned.
margin liquidation
Planned.
Ledgers & money
Never losing or inventing a cent.
Money representation
lowStore money as integer minor units with an explicit currency exponent, compute in wider integers, and round once with a named rounding mode.
Double-entry ledger
lowAppend-only journal of transactions whose postings sum to zero per currency; balances are derived, so money can only move, never appear or vanish.
Event sourcing
lowPersist state changes as an append-only stream of immutable events per entity; current state is a fold over them, guarded by expected-version appends.
largest remainder rounding
Planned.
currency cross rate triangulation
Planned.
fifo lot consumption
Planned.
tax lot accounting
Planned.
Corporate-action adjustment
lowKeep raw bars plus a tiny table of cumulative backward factors, built by one reverse scan over events and applied at read time, versioned by as-of date.
revenue recognition schedules
Planned.
multilateral netting
Planned.
cash pooling sweeps
Planned.
payment waterfall allocation
Planned.
Payments
Moving money exactly once across unreliable systems.
Idempotency keys
lowClient-chosen unique key per logical operation, stored with a request fingerprint and the final response, so retries replay the first result instead of acting twice.
Payment state machine
mediumPersisted state machine for a payment lifecycle (authorize, capture, void, refund) that treats timeouts as unknown, retries with the same key and applies webhooks idempotently.
Reconciliation
lowMatch internal ledger records against bank and processor statements by reference, then amount and date window; every unmatched or mismatched item becomes an exception.
authorization holds
Planned.
emv cryptograms
Planned.
iso 8583 messages
Planned.
iso 20022 messages
Planned.
stand in processing
Planned.
real time gross settlement
Planned.
delivery versus payment
Planned.
dukpt key derivation
Planned.
Latency engineering
Microseconds in the hot path.
Pricing & risk models
Valuing instruments and portfolios and sizing their risk.
Black-Scholes-Merton formula
lowClosed-form European option price and Greeks from spot, strike, time, rates and volatility; Newton inversion gives implied volatility. About 30 ns each.
Binomial lattice pricing
mediumRecombining price tree with risk-neutral probabilities and backward induction; the cheapest way to price early-exercise claims, O(N²) time and O(N) memory.
least squares monte carlo
Planned.
Yield curve bootstrapping
mediumTurn quoted deposits, futures and swaps into a discount curve by solving one new maturity per instrument so that every quote reprices exactly.
day count conventions
Planned.
Value at Risk and Expected Shortfall
mediumA loss threshold exceeded with probability 1−α over h days, plus the mean loss beyond it; three estimators trade speed for realism.
portfolio margining span
Planned.
mean variance optimization
Planned.
portfolio performance metrics
Planned.
threshold rebalancing
Planned.
chain ladder reserving
Planned.
overround margin pricing
Planned.
Billing & metering
Metering usage, rating it against plans and holding capacity.
usage metering
Planned.
tariff rating
Planned.
proration calculation
Planned.
loan amortization
Planned.
inventory reservation
Planned.
quota reservation
Planned.
cost allocation models
Planned.
Auctions & market makers
Auction formats, ad pacing, yield management and automated market makers.
Ranked-slot auction (GSP and VCG)
mediumRank bidders by bid × quality, give them the k positions in order, and charge each the minimum bid that would keep their rank (GSP); VCG is the truthful reference.
sealed bid auction
Planned.
proxy bidding
Planned.
budget pacing
Planned.
revenue management emsr
Planned.
automated market maker
Planned.
concentrated liquidity
Planned.
twap oracle
Planned.
Blockchain mechanics
Chain data structures, wallets, indexing and contract safety.
deterministic serialization
Planned.
hierarchical deterministic keys
Planned.
reorg safe chain indexing
Planned.
light client verification
Planned.
data availability sampling
Planned.
interactive fraud proofs
Planned.
reentrancy protection
Planned.