@@ -57,13 +57,13 @@ struct GatewayConfig {
5757 std::size_t maxOpenOrders{1000 };
5858
5959 // / Order timeout in nanoseconds
60- Timestamp orderTimeoutNanos{5'000'000'000 }; // 5 seconds
60+ Timestamp orderTimeoutNanos{5'000'000'000 }; // 5 seconds
6161
6262 // / Enable pre-trade risk checks
6363 bool enableRiskChecks{true };
6464
6565 // / Maximum order value (price * quantity)
66- std::int64_t maxOrderValue{1'000'000'000'000 }; // $10,000 at 8 decimals
66+ std::int64_t maxOrderValue{1'000'000'000'000 }; // $10,000 at 8 decimals
6767
6868 // / Maximum position per symbol
6969 Quantity maxPositionPerSymbol{100'000 };
@@ -83,20 +83,20 @@ struct GatewayConfig {
8383 * @brief Internal order representation with full state tracking.
8484 */
8585struct alignas (CACHE_LINE_SIZE ) InternalOrder {
86- OrderId clientOrderId; // /< Client-assigned order ID
87- OrderId exchangeOrderId; // /< Exchange-assigned order ID
88- SymbolId symbolId; // /< Instrument
89- std::string symbol; // /< Symbol string
90- Side side; // /< Buy/Sell
91- Price price; // /< Limit price
92- Quantity orderQty; // /< Original quantity
93- Quantity filledQty; // /< Cumulative filled quantity
94- Quantity remainingQty; // /< Remaining quantity
95- OrderStatus status; // /< Current status
96- OrderType orderType; // /< Order type
97- Timestamp submitTime; // /< When order was submitted
98- Timestamp lastUpdateTime; // /< Last status change
99- std::uint64_t strategyId; // /< Originating strategy
86+ OrderId clientOrderId; // /< Client-assigned order ID
87+ OrderId exchangeOrderId; // /< Exchange-assigned order ID
88+ SymbolId symbolId; // /< Instrument
89+ std::string symbol; // /< Symbol string
90+ Side side; // /< Buy/Sell
91+ Price price; // /< Limit price
92+ Quantity orderQty; // /< Original quantity
93+ Quantity filledQty; // /< Cumulative filled quantity
94+ Quantity remainingQty; // /< Remaining quantity
95+ OrderStatus status; // /< Current status
96+ OrderType orderType; // /< Order type
97+ Timestamp submitTime; // /< When order was submitted
98+ Timestamp lastUpdateTime; // /< Last status change
99+ std::uint64_t strategyId; // /< Originating strategy
100100
101101 InternalOrder () noexcept = default ;
102102
@@ -125,13 +125,13 @@ struct ExecutionReport {
125125 OrderId clientOrderId;
126126 OrderId exchangeOrderId;
127127 OrderStatus status;
128- Price lastPrice; // /< Last fill price
129- Quantity lastQty; // /< Last fill quantity
130- Quantity cumulativeQty; // /< Total filled quantity
131- Quantity leavesQty; // /< Remaining quantity
132- Timestamp transactTime; // /< Exchange timestamp
133- int rejectReason; // /< Reason code if rejected
134- std::string text; // /< Reject reason text
128+ Price lastPrice; // /< Last fill price
129+ Quantity lastQty; // /< Last fill quantity
130+ Quantity cumulativeQty; // /< Total filled quantity
131+ Quantity leavesQty; // /< Remaining quantity
132+ Timestamp transactTime; // /< Exchange timestamp
133+ int rejectReason; // /< Reason code if rejected
134+ std::string text; // /< Reject reason text
135135};
136136
137137// ==============================================================================
@@ -650,7 +650,7 @@ class OrderEntryGateway {
650650
651651private:
652652 [[nodiscard]] bool checkRateLimit (Timestamp now) noexcept {
653- constexpr Timestamp WINDOW_NANOS = 1'000'000'000 ; // 1 second
653+ constexpr Timestamp WINDOW_NANOS = 1'000'000'000 ; // 1 second
654654
655655 while (m_orderTimeCount > 0 &&
656656 (now - m_orderTimes[m_orderTimeHead]) > WINDOW_NANOS ) {
0 commit comments