|
BetaTrader
A HFT Eco-System
|
A utility class for publishing execution reports, trades, and rejections. More...
#include <ExecutionPublisher.h>

Public Member Functions | |
| ExecutionPublisher ()=default | |
| Default constructor is deleted to prevent instantiation. | |
| ExecutionPublisher (const ExecutionPublisher &)=delete | |
| Copy constructor is deleted to prevent copying. | |
| ~ExecutionPublisher ()=default | |
| Default destructor. | |
| ExecutionPublisher & | operator= (const ExecutionPublisher &)=delete |
| Copy assignment operator is deleted to prevent copying. | |
Static Public Member Functions | |
| static void | publishExecution (const common::Order &order, const std::string &action) |
| Publishes an execution report for an order. | |
| static void | publishRejection (const common::OrderID &orderId, const common::ClientID &clientId, const std::string_view &reason) |
| Publishes a rejection for an order. | |
| static void | publishTrade (const common::Trade &trade) |
| Publishes a trade execution. | |
A utility class for publishing execution reports, trades, and rejections.
This class provides a centralized way to log and publish information about the state of orders and trades in the system. It is designed as a static utility class and cannot be instantiated.
|
default |
Default constructor is deleted to prevent instantiation.
|
default |
Default destructor.
|
delete |
Copy constructor is deleted to prevent copying.
|
delete |
Copy assignment operator is deleted to prevent copying.
|
static |
Publishes an execution report for an order.
| order | The order for which the execution report is being published. |
| action | The action that was taken on the order (e.g., "NEW", "CANCELED"). |


|
static |
Publishes a rejection for an order.
| orderId | The ID of the order that was rejected. |
| clientId | The ID of the client who submitted the order. |
| reason | The reason for the rejection. |


|
static |
Publishes a trade execution.
| trade | The trade that was executed. |

