Skip to content
matthart1983Public

About

A FIX protocol engine in Rust, with documented serialisation and latency benchmarks.

Resources

Stars

31 stars

Watchers

0 watching

Forks

Repository files navigation

⚡ nanofix

Ultra-low-latency FIX protocol engine for institutional trading

111K msg/s TCP · 28 ns heartbeat serialize · Zero allocations · Lock-free


nanofix Demo

nanofix is a deterministic, zero-allocation FIX protocol engine written in Rust, designed for the electronic trading infrastructure of tier-1 investment banks. On Apple Silicon it parses a FIX message in about 1.2 µs (Criterion mean), sustains over 2 million parsed messages per second per core, and completes a localhost TCP NewOrderSingle → ExecutionReport round trip in 15.6 µs at p50. Against QuickFIX/J under the same loop methodology it serialises NewOrderSingle 28.7× faster and parses NewOrderSingle and ExecutionReport 1.5–2.2× faster; QuickFIX/J is faster at parsing Heartbeat. Aeron IPC is the standard colocated integration path, while TCP remains available for venue and counterparty connectivity.

Crates

Crate What it is
nanofix The engine: parser, serializer, sessions, FIXT 1.1, dictionaries, journal and kernel TCP transport. Pure Rust, no C toolchain needed.
nanofix-aeron Aeron IPC/UDP transport and FIX↔SBE normalization. Builds the official Aeron C client (1.51 or later) with CMake.
nanofix-sbe The SBE codecs nanofix-aeron uses, generated by sbetool.
[dependencies]
nanofix = "0.1"
# For the Aeron path:
nanofix-aeron = "0.1"

Highlights

  • 🏎️ 28 ns heartbeat serialization, 59 ns NewOrderSingle serialization
  • 📈 2.25M msg/s sustained parse throughput (single core, Apple Silicon)
  • 🧠 Zero-copy parser — flyweight pattern, no heap allocations on hot path
  • 🔒 Lock-free memory pool with 8.5 ns alloc/dealloc cycles
  • 💾 Memory-mapped journal with CRC32 integrity and crash recovery
  • 📐 Extensive test suite — unit, integration, conformance, property-based (fuzz)
  • 📊 4 Criterion benchmark suites with competitive comparison framework
  • 🏛️ Regulatory compliant — MiFID II, Reg NMS, CAT, SEC Rule 15c3-5
  • 🔁 FIXT 1.1 / FIX 5.0 SP2 transport-independent session protocol
  • 📡 Aeron IPC transport — the default colocated integration pattern
  • 🚀 SIMD parsing — NEON (ARM) + SSE2 (x86) accelerated delimiter scanning
  • 🔄 Repeating groups — nested group parser for market data, legs, fills
  • 📡 DPDK transport — kernel-bypass NIC access via poll-mode drivers
  • 🏗️ Cluster HA — Aeron-aligned Raft model with state replication + snapshots
  • 📈 Prometheus metrics — lock-free counters, gauges, HDR histograms
  • 🌐 Web dashboard — HTTP endpoints for health, sessions, metrics
  • ⏱️ Hardware timestamps — TSC/rdtsc/CNTVCT with MiFID II nanosecond formatting
  • 🔌 Session acceptor — connection pooling, CompID whitelisting, idle eviction
  • 📖 XML dictionary compiler — QuickFIX XML → O(1) runtime lookup tables
  • 🔌 TCP networking — real initiator and acceptor for venue/counterparty connectivity
  • 🖥️ FixServer — high-level acceptor with auto-accept, CompID whitelisting, thread-per-connection
  • 📡 FixClient — high-level initiator with single-call connect_and_run()

Performance

All numbers measured on Apple Silicon (M-series) using Criterion.rs. See BENCHMARKS.md for full methodology.

Criterion Benchmarks

Benchmark Result
Serialize Heartbeat 28 ns
Serialize Logon 33 ns
Serialize NewOrderSingle 59 ns
Serialize ExecutionReport 37 ns
Parse Heartbeat (validated) 1.15 µs
Parse NOS (validated) 1.20 µs
Parse ExecRpt (validated) 1.25 µs
Parse throughput (unchecked) 2.25M msg/s
Parse throughput (validated) 2.15M msg/s
Parse + Respond (NOS → ExecRpt) 1.56M msg/s
Pool alloc/dealloc 8.5 ns
Build + Parse Logon roundtrip 74 ns
Sequential 10k validations 143 µs
Logon handshake 97 ns

vs QuickFIX/J (same methodology, 1M iterations each)

Benchmark nanofix QuickFIX/J Speedup
Serialize NOS 32 ns 917 ns 28.7× faster
Parse NOS 532 ns 796 ns 1.5× faster
Parse ExecRpt 583 ns 1,270 ns 2.2× faster
Parse Heartbeat 474 ns 330 ns 0.70× (QuickFIX/J faster)
Throughput 1.83M msg/s 1.21M msg/s 1.5× faster

QuickFIX/J comparison run via bench-vs-quickfixj/ and crates/nanofix/src/bin/bench_compare.rs. See BENCHMARKS.md for methodology. Loop timings are lower than the Criterion means above (NOS serialisation: 32 ns in the loop, 59 ns under Criterion), so compare ratios within a table, not absolute numbers across tables.

TCP Round-Trip (NOS → ExecRpt over localhost)

Metric nanofix QuickFIX/J Speedup
p50 latency 15.6 µs 61.1 µs 3.9×
p99 latency 52.9 µs 342.7 µs 6.5×
p99.9 latency 86.5 µs 653.4 µs 7.5×
max latency 125.1 µs 3,939.8 µs 31.5×
Throughput 111,686 msg/s 24,948 msg/s 4.5×

Architecture

┌──────────────────────────────────────────────────────────────────┐
│                       nanofix                       │
├─────────────┬──────────────┬──────────────┬─────────────────────┤
│  Transport  │   Session    │   Message    │    Application      │
│   Layer     │   Layer      │   Layer      │    Gateway          │
├─────────────┼──────────────┼──────────────┼─────────────────────┤
│ • Aeron IPC │ • Session    │ • Zero-copy  │ • Order routing     │
│ • DPDK /    │   state FSM  │   parser     │ • Strategy callbk   │
│   OpenOnload│ • Seq mgmt   │ • Flyweight  │ • Risk checks       │
│ • TCP/UDP   │ • Heartbeat  │   pattern    │ • Drop-copy         │
│ • Multicast │ • Logon/out  │ • FIX dict   │ • Admin interface   │
│ • Unix sock │ • Gap detect │   compiler   │ • Metrics export    │
│ • Shared mem│              │              │                     │
└─────────────┴──────────────┴──────────────┴─────────────────────┘
         │              │              │               │
    ┌────┴────┐    ┌────┴────┐   ┌────┴────┐    ┌────┴────┐
    │  Ring   │    │  Ring   │   │  Ring   │    │  Ring   │
    │ Buffer  │    │ Buffer  │   │ Buffer  │    │ Buffer  │
    └────┬────┘    └────┬────┘   └────┬────┘    └────┬────┘
         └──────────────┴────────────┴───────────────┘
                         │
                   ┌─────┴─────┐
                   │  Journal  │  (mmap persistent store)
                   └───────────┘

Core Design Principles

Principle Implementation
Zero-allocation hot path Pre-allocated memory pools, no heap allocs after warm-up
Lock-free concurrency Atomic CAS free-list, SPSC/MPSC ring buffers
Kernel bypass networking DPDK / OpenOnload / Mellanox VMA (feature-gated)
CPU affinity & isolation Pinned threads on isolcpus cores with nohz_full
Cache-line aware layouts 64-byte aligned structs, false-sharing-free design
Deterministic execution No GC, no syscalls on hot path, pre-warmed pools
Mechanical sympathy Data structures sized for L1/L2 cache residency

Project Structure

nanofix/
├── Cargo.toml                # Workspace
├── SPECIFICATION.md          # Full 15-section technical specification
├── BENCHMARKS.md             # 10 benchmark definitions with methodology
├── bench-vs-quickfixj/       # QuickFIX/J comparison benchmark (Gradle project)
├── scripts/                  # SBE codec generation
│
└── crates/
    ├── nanofix/              # The engine (pure Rust)
    │   ├── src/
    │   │   ├── parser.rs, serializer.rs, message.rs, tags.rs, checksum.rs, simd.rs
    │   │   ├── session.rs, fixt.rs, engine.rs, acceptor.rs, client.rs, server.rs
    │   │   ├── dictionary.rs, dict_compiler.rs, groups.rs
    │   │   ├── journal.rs, pool.rs, timestamp.rs, metrics.rs, cluster.rs, dashboard.rs
    │   │   ├── transport.rs      # Transport trait, config, kernel TCP factory
    │   │   ├── transport_tcp.rs  # Kernel TCP transport
    │   │   ├── transport_dpdk.rs # DPDK kernel-bypass transport (`dpdk` feature)
    │   │   └── bin/              # demo, session_demo, tcp_demo, dashboard, bench_compare, bench_tcp
    │   ├── tests/            # integration, conformance and property tests
    │   └── benches/          # criterion benchmarks BM-01 to BM-08
    │
    ├── nanofix-aeron/        # Aeron transport
    │   ├── build.rs          # Builds or links the official Aeron C client and driver
    │   ├── src/
    │   │   ├── aeron_c.rs        # FFI wrappers over the Aeron C client and media driver
    │   │   ├── aeron_sbe.rs      # FIX payloads in the SBE envelope
    │   │   ├── transport_aeron.rs
    │   │   ├── normalized_sbe.rs # FIX ↔ normalized SBE order messages
    │   │   └── bin/              # aeron_demo, aeron_media_driver, bench_e2e
    │   └── tests/aeron_integration.rs
    │
    └── nanofix-sbe/          # Generated SBE codecs + schema/fix_aeron_envelope.xml

Quick Start

Prerequisites

  • Rust 1.75+ (stable)
  • For nanofix-aeron only: CMake and a C/C++ compiler, plus an official Aeron source checkout (1.51 or later) at AERON_SOURCE_DIR or crates/nanofix-aeron/vendor/aeron. Alternatively, point AERON_LIB_DIR at prebuilt libaeron/libaeron_driver binaries.

Build

# The engine alone: no C toolchain needed
cargo build --release -p nanofix

# With DPDK kernel bypass (requires DPDK installed)
cargo build --release -p nanofix --features dpdk

# Everything, including the Aeron transport
export AERON_SOURCE_DIR=/path/to/aeron
cargo build --release

# Or link against prebuilt official Aeron libraries instead of invoking CMake
export AERON_LIB_DIR=/path/to/aeron/build/lib
cargo build --release

Run Demo

# Default Aeron IPC initiator/acceptor demo
cargo run --release --bin aeron_demo

# Aeron local codec + live round-trip benchmarks
cargo run --release --bin aeron_demo benchmark

# Optional: shared standalone Aeron media driver for multi-process setups
cargo run --release --bin aeron_media_driver -- --aeron-dir /tmp/nanofix-aeron

# Full engine capability demo
cargo run --release --bin demo

# TCP session demo (server + two clients)
cargo run --release --bin session_demo

# Web dashboard
cargo run --release --bin dashboard

Run Tests

# Engine tests (no Aeron needed)
cargo test -p nanofix

# Aeron transport tests (needs AERON_SOURCE_DIR or AERON_LIB_DIR)
cargo test -p nanofix-aeron

# Run with output (see throughput numbers)
cargo test --release -p nanofix -- --nocapture

# Run specific test suites
cargo test --test integration_tests
cargo test --test conformance_tests
cargo test --test property_tests

Run Benchmarks

# Run all benchmark suites (generates HTML reports in target/criterion/)
cargo bench -p nanofix

# Run specific benchmark
cargo bench -p nanofix --bench parse_benchmark
cargo bench -p nanofix --bench serialize_benchmark
cargo bench -p nanofix --bench throughput_benchmark
cargo bench -p nanofix --bench session_benchmark

# Run a specific benchmark group
cargo bench -p nanofix -- "BM-01"
cargo bench -p nanofix -- "BM-04_sustained"

Benchmark reports are generated in target/criterion/ with interactive HTML charts.

QuickFIX/J Comparison

# Run the Rust side (nanofix)
cargo run --release --bin bench_compare

# Run the Java side (QuickFIX/J) — requires Gradle + JDK 17+
cd bench-vs-quickfixj
gradle run

TCP Round-Trip Benchmark

# nanofix TCP benchmark (10k round-trips over localhost)
cargo run --release --bin bench_tcp

# QuickFIX/J TCP benchmark
cd bench-vs-quickfixj
gradle runTcp

Usage

Parsing a FIX Message

use nanofix::parser::FixParser;
use nanofix::tags;

let parser = FixParser::new(); // checksum + body length validation
// let parser = FixParser::new_unchecked(); // max throughput, no validation

let wire_data = b"8=FIX.4.4\x019=70\x0135=D\x0149=BANK\x0156=NYSE\x01...";
let (view, bytes_consumed) = parser.parse(wire_data).unwrap();

// Zero-copy field access (returns slices into original buffer)
let msg_type = view.msg_type();           // Some(b"D")
let symbol = view.get_field_str(tags::SYMBOL);  // Some("AAPL")
let qty = view.get_field_i64(tags::ORDER_QTY);  // Some(1000)
let seq = view.msg_seq_num();             // Some(42)

Serializing a FIX Message

use nanofix::serializer;

let mut buf = [0u8; 1024]; // pre-allocated, no heap

// Build a NewOrderSingle — writes directly into buffer
let len = serializer::build_new_order_single(
    &mut buf,
    b"FIX.4.4",         // BeginString
    b"BANK_OMS",        // SenderCompID
    b"NYSE",            // TargetCompID
    42,                 // MsgSeqNum
    b"20260321-10:00:00.123",  // SendingTime
    b"ORD-00001",       // ClOrdID
    b"AAPL",            // Symbol
    b'1',               // Side (Buy)
    10000,              // OrderQty
    b'2',               // OrdType (Limit)
    b"178.55",          // Price
);

let wire_msg = &buf[..len]; // ready to send

Aeron Transport (nanofix-aeron)

For a dedicated step-by-step setup guide, see AERON.md.

The default Aeron transport uses manual FFI wrappers over the official Aeron C client and media driver, wraps FIX payloads in an official SBE-generated Rust envelope, and publishes them onto the configured Aeron channel. The transport default expects a standalone media driver using the shared default Aeron directory, while embedded mode remains available as an explicit opt-in. The aeron_demo binary is friendlier for demos and automatically spawns its own standalone driver child process.

use nanofix::transport::TransportConfig;
use nanofix_aeron::build_transport;

let mut acceptor = build_transport(TransportConfig {
    aeron_dir: Some("/tmp/nanofix-aeron".into()),
    ..TransportConfig::aeron_ipc(1001)
})?;
acceptor.bind("127.0.0.1", 0)?;

let mut initiator = build_transport(TransportConfig {
    aeron_dir: Some("/tmp/nanofix-aeron".into()),
    ..TransportConfig::aeron_ipc(1001)
})?;
initiator.connect("127.0.0.1", 0)?;

// Feed either transport into FixEngine::new_acceptor(...) or
// FixEngine::new_initiator(...). See crates/nanofix-aeron/src/bin/aeron_demo.rs for a full example.

Session Management

use nanofix::session::*;
use std::time::Duration;

let config = SessionConfig {
    session_id: "PROD-NYSE-1".to_string(),
    fix_version: "FIX.4.4".to_string(),
    sender_comp_id: "BANK_OMS".to_string(),
    target_comp_id: "NYSE".to_string(),
    role: SessionRole::Initiator,
    heartbeat_interval: Duration::from_secs(30),
    reconnect_interval: Duration::from_secs(1),
    max_reconnect_attempts: 0, // unlimited
    sequence_reset_policy: SequenceResetPolicy::Daily,
    validate_comp_ids: true,
    max_msg_rate: 50_000,
};

let mut session = Session::new(config);
session.on_connected();  // → LogonSent
session.on_logon();      // → Active

let seq = session.next_outbound_seq_num(); // 1, 2, 3...
session.validate_inbound_seq(1).unwrap();  // Ok or Err(gap_range)

Memory Pool

use nanofix::pool::BufferPool;

// Pre-allocate 1024 × 256-byte buffers (no allocation on hot path)
let mut pool = BufferPool::new(256, 1024);

let handle = pool.allocate().unwrap();     // ~8 ns, lock-free
let buf = pool.get_mut(handle);            // direct slice access
buf[0..5].copy_from_slice(b"hello");
pool.deallocate(handle);                   // ~8 ns, lock-free

Message Journal

use nanofix::journal::{Journal, SyncPolicy, session_hash};

let hash = session_hash("BANK_OMS", "NYSE");
let mut journal = Journal::open(
    Path::new("/mnt/nvme/fix-journal.dat"),
    4 * 1024 * 1024 * 1024, // 4 GB
    SyncPolicy::Batch(10),   // fsync every 10ms
).unwrap();

journal.append(hash, seq_num, &wire_msg)?;

// Recovery
let (header, body) = journal.read_entry(offset).unwrap();
assert_eq!(header.seq_num, 1);

FIXT 1.1 / FIX 5.0 SP2 Sessions

use nanofix::fixt::*;
use nanofix::session::*;

let config = FixtSessionConfig {
    base: SessionConfig { /* ... */ ..Default::default() },
    default_appl_ver_id: ApplVerID::Fix50SP2,
    supported_versions: vec![ApplVerID::Fix44, ApplVerID::Fix50SP2],
};

let mut session = FixtSession::new(config);
// BeginString is always "FIXT.1.1", app version negotiated at Logon
assert_eq!(session.negotiated_version(), None);
// After logon, the negotiated version is available

Repeating Groups

use nanofix::groups::*;

let group_def = md_entries_group(); // NoMDEntries(268)
let group = RepeatingGroup::parse(buffer, &view.fields(), start_idx, &group_def)?;

for i in 0..group.count() {
    let entry = group.get_entry(i).unwrap();
    let price = entry.get_field_str(270);  // MDEntryPx
    let size = entry.get_field_i64(271);   // MDEntrySize
}

SIMD-Accelerated Parsing

use nanofix::simd;

// Finds SOH delimiters using NEON (ARM) or SSE2 (x86) — 16 bytes/cycle
let pos = simd::find_soh(buffer);         // first SOH position
let count = simd::count_fields(buffer);   // total field count

Prometheus Metrics

use nanofix::metrics::EngineMetrics;

let metrics = EngineMetrics::new();
metrics.messages_parsed.inc();
metrics.parse_latency_ns.record(280);

// Render for Prometheus scraping
let output = metrics.render_prometheus();
// → nanofix_messages_parsed_total 1
// → nanofix_parse_latency_ns{quantile="0.99"} 280

Cluster (Active-Active HA)

use nanofix::cluster::*;

let config = ClusterConfig::three_node(
    NodeId { id: 1, address: "10.0.1.1".into(), port: 9100 },
    vec![
        NodeId { id: 2, address: "10.0.1.2".into(), port: 9100 },
        NodeId { id: 3, address: "10.0.1.3".into(), port: 9100 },
    ],
);
let mut node = ClusterNode::new(config);
node.start();
node.replicate_session_state(state); // Aeron-aligned Raft model

XML Dictionary Compiler

use nanofix::dict_compiler::*;

let dict = CompiledDictionary::from_xml(xml_str)?;
let field = dict.lookup_field(55);             // O(1) lookup → "Symbol"
let msg = dict.lookup_message("D");            // → NewOrderSingle
let errors = dict.validate_message("D", &tags); // check required fields

FIX Server (Acceptor)

Use this when you explicitly want TCP socket ingress. For colocated application integration, use FixEngine with the default Aeron transport instead.

use nanofix::server::*;
use nanofix::engine::*;

let server = FixServer::new(FixServerConfig {
    port: 9878,
    sender_comp_id: "EXCHANGE".into(),
    allowed_comp_ids: vec!["CLIENT_A".into(), "CLIENT_B".into()],
    ..Default::default()
});

// Blocks, spawns a thread per connection
server.start(|| Box::new(MyApp)).unwrap();

FIX Client (Initiator)

Use this when you explicitly want TCP socket egress. For colocated application integration, use FixEngine with the default Aeron transport instead.

use nanofix::client::*;

let client = FixClient::new(FixClientConfig {
    remote_host: "10.0.1.50".into(),
    remote_port: 9878,
    sender_comp_id: "BANK_OMS".into(),
    target_comp_id: "EXCHANGE".into(),
    ..Default::default()
});

// Blocks until Logout
client.connect_and_run(&mut MyApp::new()).unwrap();

Hardware Timestamps

use nanofix::timestamp::*;

let clock = HrClock::new(TimestampSource::Tsc);
let ts = clock.now();
let fix_ts = ts.to_fix_timestamp_ns(); // "20260321-10:00:00.123456789" (MiFID II)

let tracker = LatencyTracker::start(&clock);
// ... do work ...
let elapsed_ns = tracker.stop();

Web Dashboard

use nanofix::dashboard::*;

let mut dashboard = Dashboard::new(DashboardConfig::default());
dashboard.update_session(session_status);

let response = dashboard.handle_request("GET", "/health");
// → { "healthy": true, "active_sessions": 5, ... }

let response = dashboard.handle_request("GET", "/metrics");
// → Prometheus text format

let response = dashboard.handle_request("GET", "/");
// → HTML dashboard with auto-refresh

FIX Protocol Support

Versions

Version Status
FIX 4.0 ✅ Parse/Serialize
FIX 4.1 ✅ Parse/Serialize
FIX 4.2 ✅ Full support
FIX 4.3 ✅ Parse/Serialize
FIX 4.4 ✅ Full support (primary)
FIX 5.0 SP2 / FIXT 1.1 ✅ Full support (transport-independent sessions)

Supported Message Types

Session Level: Logon (A), Logout (5), Heartbeat (0), TestRequest (1), ResendRequest (2), SequenceReset (4), Reject (3)

Application Level: NewOrderSingle (D), ExecutionReport (8), OrderCancelRequest (F), OrderCancelReplaceRequest (G), OrderStatusRequest (H), OrderCancelReject (9), MarketDataRequest (V), MarketDataSnapshotFullRefresh (W), MarketDataIncrementalRefresh (X), QuoteRequest (R), Quote (S), TradeCaptureReport (AE)

Custom message types supported via dictionary configuration.

Test Suite

Suite Tests Coverage
Unit tests 198 Parser, serializer, checksum, session FSM, pool, journal, transport, dictionary, SIMD, groups, FIXT, metrics, cluster, acceptor, dict compiler, timestamps, dashboard
Integration tests 18 End-to-end roundtrip, stress (1M messages), session lifecycle, journal persistence
Conformance tests 16 FIX 4.4 spec compliance — field ordering, required fields, message structure
Property tests 6 Fuzz testing via proptest — random messages, garbage input, sequence monotonicity
Total 238
# Engine tests
cargo test -p nanofix

# Run with release optimizations (stress tests run faster)
cargo test --release -p nanofix

Benchmark Suite

10 benchmark definitions (BM-01 through BM-10) covering:

ID Benchmark What it measures
BM-01 Parse Latency Time to parse FIX messages by type and size
BM-02 Serialize Latency Time to build wire-format messages
BM-03 Wire-to-Wire NIC RX → process → NIC TX (requires hardware)
BM-04 Sustained Throughput Max msg/s at p99 ≤ 10 µs
BM-05 Burst Handling Latency under 10× burst load
BM-06 Session Establishment Logon handshake + time to first trade
BM-07 Gap Fill / Recovery Sequence number recovery performance
BM-08 Memory Footprint RSS under various session counts
BM-09 Coordinated Omission Verify benchmark accuracy (no CO bias)
BM-10 Jitter Analysis Latency distribution characterization

See BENCHMARKS.md for full methodology and results.

Feature Flags

Crate Flag Description
nanofix dpdk DPDK user-space TCP (kernel bypass)

SIMD scanning (SSE2 on x86_64, NEON on ARM) is picked by target architecture, not a feature flag. Aeron is the separate nanofix-aeron crate.

Deployment

Recommended Hardware

Component Specification
CPU Intel Xeon W-3400 / AMD EPYC 9004 (≥ 16 cores)
RAM 128 GB DDR5-4800 ECC
NIC Solarflare X2522 / Mellanox ConnectX-6 Dx (25/100 GbE)
Storage 2× NVMe SSD (Intel Optane P5800X preferred)
OS RHEL 9 / Ubuntu 22.04 (RT kernel optional)

OS Tuning

# Isolate cores for engine threads
GRUB_CMDLINE_LINUX="isolcpus=4-15 nohz_full=4-15 rcu_nocbs=4-15"

# Disable THP
echo madvise > /sys/kernel/mm/transparent_hugepage/enabled

# Disable swap
sysctl vm.swappiness=0

# Enable busy polling (kernel TCP fallback)
sysctl net.core.busy_poll=50

Regulatory Compliance

Regulation Requirement Implementation
MiFID II RTS 25 Clock sync ≤ 100 µs PTP with hardware timestamping, ns precision
Reg NMS Order protection Application layer callbacks
CAT Reportable event timestamps Nanosecond audit trail
SEC Rule 15c3-5 Pre-trade risk controls Inline fat-finger, rate limit, kill switch
FCA Transaction reporting Drop-copy session support

Documentation

  • SPECIFICATION.md — Complete 15-section technical specification covering architecture, threading, memory layout, session FSM, security, configuration, and compliance
  • BENCHMARKS.md — Benchmark definitions, methodology, measured results, and QuickFIX/J comparison
  • AERON.md — Dedicated guide for the standard/default Aeron integration path

Roadmap

  • FIX 5.0 SP2 / FIXT 1.1 transport-independent session protocol
  • Aeron IPC transport as the default integration path
  • DPDK transport implementation (poll-mode driver integration)
  • SIMD-accelerated SOH scanning (AVX2 + NEON)
  • Repeating group parser with nested group support
  • Aeron-aligned cluster model for active-active HA
  • XML dictionary compiler (FIX Orchestra → binary)
  • Prometheus metrics exporter
  • Web dashboard with real-time latency heatmaps
  • FIX session acceptor with connection pooling
  • Hardware timestamp capture (TSC / rdtsc / CNTVCT_EL0)

License

MIT — see LICENSE.

About

A FIX protocol engine in Rust, with documented serialisation and latency benchmarks.

Resources

Stars

31 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages