Back to Pulse
EurekaLabs Pulse

Nanosecond Timestamping for MiFID II and CAT Compliance

Priya Venkataraman
Nanosecond Timestamping for MiFID II and CAT Compliance

What MiFID II and CAT Actually Require

Before discussing implementation, it is worth being precise about what the regulations specify, since a lot of compliance infrastructure is built around vague summaries rather than the actual text.

MiFID II (specifically RTS 25) requires that investment firms synchronize their clocks to within 1 millisecond of UTC for most trading activity, and within 100 microseconds of UTC for high-frequency trading. The synchronization source must be traceable to UTC. Event timestamps in order submission records must be accurate to the required precision, and firms must have documented evidence of their synchronization methodology available for regulatory inspection.

The US Consolidated Audit Trail (CAT) imposes similar requirements: timestamps accurate to within 1 millisecond for most reporters, with additional sub-millisecond requirements for certain FINRA-member HFT categories. CAT timestamps must be in Eastern Time with millisecond precision in the submitted records, though internal systems maintaining nanosecond resolution are not prohibited.

The practical implication: you need nanosecond resolution internally (for sequencing and gap detection), you need nanosecond-accurate UTC synchronization, and you need a clear mapping from internal nanosecond timestamps to the millisecond-precision values you submit to regulators.

Clock Synchronization: NTP vs PTP

Standard NTP (Network Time Protocol) achieves synchronization accuracy in the range of 1-10 milliseconds over the public internet, and roughly 100 microseconds on a well-maintained local network. For MiFID II's 1 millisecond requirement, NTP on a local network is technically adequate but provides little margin.

PTP (Precision Time Protocol, IEEE 1588) is the correct choice for any infrastructure with sub-millisecond requirements. PTP uses hardware timestamping on both ends of the network path to measure and cancel network delay, achieving synchronization accuracy in the range of 100 nanoseconds to 10 microseconds depending on the quality of the hardware and network path. NICs with hardware PTP support are available from Intel, Mellanox, and Solarflare; pairing them with a PTP grandmaster clock (typically a GPS-disciplined oscillator) gives you traceable UTC synchronization at nanosecond precision.

Co-location environments at major data centers (Equinix NY4, Mahwah) typically offer PTP distribution services as part of the connectivity package. If you are already co-located, using the venue-provided PTP service is simpler than running your own grandmaster. Verify the accuracy specification of the service against your compliance requirements before assuming it meets the standard.

Hardware Timestamping vs Software Timestamping

A hardware timestamp is applied to an incoming packet at the NIC, before the packet is passed to the kernel. A software timestamp is applied by the application or kernel when it processes the packet. The difference matters because software timestamping adds the kernel processing latency (typically 10-50 microseconds, but highly variable under load) to the apparent timestamp of the event.

For compliance purposes, the relevant timestamp is when the firm received or transmitted the message, which corresponds most closely to the hardware receive or transmit time. Using software timestamps introduces a systematic lag that, while usually within the MiFID II margin, creates audit risk: if a regulator reconstructs the timeline from exchange-side records and compares them to your submission, any consistent offset larger than the allowed tolerance becomes a finding.

Hardware timestamping requires NIC support and driver configuration. For Linux environments, the SO_TIMESTAMPING socket option combined with a PTP-capable NIC gives you hardware receive and transmit timestamps accessible from userspace. The implementation requires care: you need to verify that hardware timestamps are being used, not software fallback, which requires explicit testing after any driver or kernel update.

Storing and Mapping Timestamps

Internal records should store timestamps as raw nanoseconds-since-epoch (uint64). This format is unambiguous, requires no timezone logic at storage time, and converts to any required regulatory format at export time. Storing timestamps as formatted strings or in any timezone other than UTC is a common mistake that creates audit complexity.

The CAT requirement to submit in Eastern Time with millisecond precision means your export layer needs to handle: UTC to Eastern Time conversion (including daylight saving transitions), truncation from nanoseconds to milliseconds without rounding errors, and format conformance to the CAT specification. All of this is deterministic given a correct internal nanosecond UTC record. The complexity belongs in the export layer, not in the storage format.

What Regulators Actually Check

Based on published guidance from ESMA (for MiFID II) and FINRA (for CAT), the primary audit focus areas are: consistency between timestamps in submitted records and exchange-provided trade confirmation timestamps, documented evidence of synchronization methodology and accuracy testing, and correct handling of daylight saving transitions (a surprisingly common failure point).

Less commonly audited but equally important: gap detection records. If your feed drops a sequence range and you recover via gap fill, the timestamps on gap-filled messages may differ from their original exchange timestamps. Having a clear record of which timestamps are original and which are reconstructed protects you in a detailed timeline audit.

One area firms underinvest in: periodic accuracy validation. PTP synchronization can drift if the grandmaster loses GPS lock, if the network path changes, or if hardware is replaced and PTP configuration is not re-verified. Building automated accuracy validation that compares your clock to a known external reference at regular intervals, and that triggers alerts when accuracy degrades below your compliance threshold, is not optional. It is how you demonstrate continuous compliance rather than point-in-time compliance.

The Infrastructure You Actually Need

The minimum viable compliance timestamping stack: a PTP-capable NIC on every trading system host, a PTP grandmaster or access to a co-location PTP service, driver and OS configuration to enable hardware timestamping, storage that preserves full nanosecond precision internally, and an export pipeline that handles UTC to local time conversion and precision truncation correctly at reporting time.

We are not saying NTP is always wrong for compliance. For firms not in the HFT category under MiFID II, NTP with local network distribution can be within the 1 millisecond tolerance. The argument for PTP is margin: the cost difference between NTP and PTP infrastructure is small compared to the cost of a compliance finding, and PTP gives you headroom to grow into stricter requirements as your trading activity evolves.

EurekaLabs

See the Infrastructure Behind These Numbers

Request access to the EurekaLabs platform and run your own latency benchmark against your current infrastructure.