BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
TradingCoreRunbookDefinations.h
Go to the documentation of this file.
1//
2// Created by sujal on 30-10-2025.
3//
4
5#pragma once
6
7#include "logging/Runbook.h"
8#include <string_view>
9
21namespace errors {
23 "ETRADE1", "Unknown command type detected",
24 "An Unknown or un processable command type was passed with the "
25 "command,"
26 " view the command and/or change the type"};
27
29 "ETRADE2",
30 "Command did not have Order inside it, expected an order for the "
31 "given type of command",
32 "Either change the type of command or else, pass in an order for "
33 "the command"};
34
36 "ETRADE3", "Unknown command type",
37 "The command type is not supported, check if the implementation of "
38 "virtual functions."};
39
41 "ETRADE4", "Incoming Order is null",
42 "Matcher received a null pointer for incoming order."};
43
45 "ETRADE5", "Order not found", "Order not found in the order book."};
46
48 "ETRADE6", "Order not found",
49 "Order not found in the order manager."};
50
52 "ETRADE7", "Invalid NewOrder cast",
53 "Failed to cast Command to NewOrder."};
54
56 "ETRADE8", "Invalid ModifyOrder cast",
57 "Failed to cast Command to ModifyOrder."};
58
60 "ETRADE9", "Invalid CancelOrder cast",
61 "Failed to cast Command to CancelOrder."};
62
64 "ETRADE10", "Risk check failed",
65 "The order has been rejected by the risk manager."};
66
68 "ETRADE11", "Command queue full",
69 "The command queue for the partition is full, commands might be "
70 "dropped."};
71} // namespace errors
Definition Runbook.h:11
This file defines all runbook error codes as objects.
Definition DataRunBookDefinations.h:13
constexpr runbook::ErrorDefinition ETRADE2
Definition TradingCoreRunbookDefinations.h:28
constexpr runbook::ErrorDefinition ETRADE10
Definition TradingCoreRunbookDefinations.h:63
constexpr runbook::ErrorDefinition ETRADE8
Definition TradingCoreRunbookDefinations.h:55
constexpr runbook::ErrorDefinition ETRADE3
Definition TradingCoreRunbookDefinations.h:35
constexpr runbook::ErrorDefinition ETRADE4
Definition TradingCoreRunbookDefinations.h:40
constexpr runbook::ErrorDefinition ETRADE6
Definition TradingCoreRunbookDefinations.h:47
constexpr runbook::ErrorDefinition ETRADE11
Definition TradingCoreRunbookDefinations.h:67
constexpr runbook::ErrorDefinition ETRADE5
Definition TradingCoreRunbookDefinations.h:44
constexpr runbook::ErrorDefinition ETRADE7
Definition TradingCoreRunbookDefinations.h:51
constexpr runbook::ErrorDefinition ETRADE1
Definition TradingCoreRunbookDefinations.h:22
constexpr runbook::ErrorDefinition ETRADE9
Definition TradingCoreRunbookDefinations.h:59