Work
- lockfree-ipc
- Bounded lock-free queues for C++20 on Linux (single-producer, multi-producer and across processes through shared memory), and the measurement harness the other projects run on.
- fix-order-gateway
- A FIX 4.4 order entry gateway, in both roles, written from the specification. Conformance shown case by case against the FIX Trading Community's test cases, recovery tested by killing the process, measured against QuickFIX.
- itch-feed-handler
- A Nasdaq TotalView-ITCH 5.0 feed handler: MoldUDP64 multicast, lost-packet recovery, every order book rebuilt and published to other processes. Each component checked against a reference implementation over a whole trading day.
- matching-engine
- A limit order book and matching engine, the venue's side of the trade, written from Nasdaq's public rulebook.
Replaying a real trading day
I replayed Nasdaq's sample ITCH day, 30 January 2020, through the matching engine as order entry, with Nasdaq's own executions that day as the answer key.
| Executions | Count | Share |
|---|---|---|
| The engine matched the exact order Nasdaq executed | 8,430,655 | 98.55% |
| Not matched, each one counted by its cause | 124,429 | 1.45% |
| All executions of the day | 8,555,084 | 100% |
The causes, the method and every run's conditions are in the repository. Where a design loses, the tables there say so.
Background
Seventeen years of continuous C and C++ since 2009, building the components other systems depend on: protocol and market-data engines, lock-free shared-memory and IOCP transports, and database access layers that have run in production for five and eight years without a failure.
ACCA member since 2010, with an MSc in Financial Management (credit and financial risk) from Heriot-Watt. Independent systems consultant since 2014 for private clients in the UK, Spain and Zimbabwe, with finance systems roles at National Grid, Cushman & Wakefield, RICS and ReAssure. I currently build the accounting modules of a property management platform at Gigabyte Software, Monday to Wednesday.
Spreadsheet and database rescue
For finance teams relying on fragile Excel, VBA or Access tools, from someone who reads the ledger as well as the code:
- Fixing and stabilising what's broken
- Migrating to SQL Server or a proper application
- Documenting undocumented systems, with controls your auditors will accept
- A fixed-fee review to start
Recent examples: documented about 20 undocumented legacy systems at a life assurer, working from source code alone. Replaced a two-day manual monthly analysis with a dashboard that refreshes in under a minute, removing about £500K a year in write-offs from manual error.
Available Thursday to Saturday.