Skip to content

Commit 076b37a

Browse files
committed
chore: update system docs and finalize HFT refactor
1 parent 034febf commit 076b37a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

QuanuX-Common/cpp/include/quanux/MarketTick.hpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ struct alignas(64) MarketTick {
1818
uint32_t flags; // 4 bytes: Trade flags
1919
uint32_t instrument_id; // 4 bytes: Internal instrument mapping
2020

21+
// Internal Latency Tracking
22+
uint64_t internal_arrival_ts; // 8 bytes: Time tick entered process
23+
uint64_t processing_start_ts; // 8 bytes: Time stats engine picked it up
24+
2125
// Padding to reach 64 bytes
22-
// Used: 8+8+8+4+4+4 = 36 bytes
23-
// Remaining: 28 bytes
24-
uint8_t _pad[28];
26+
// Offset is 56 bytes (including 4 bytes implicit padding after instrument_id)
27+
// Remaining: 8 bytes
28+
uint8_t _pad[8];
2529
};
2630

2731
static_assert(sizeof(MarketTick) == 64, "MarketTick must be exactly 64 bytes");

0 commit comments

Comments
 (0)