OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
BenchmarkGatewayListener Class Referencefinal

Public Member Functions

void onNewOrderRequest (const NewOrderRequest order, Testing::Gateway *gateway) override

Detailed Description

Definition at line 24 of file BenchmarkGatewayListener.h.

Member Function Documentation

◆ onNewOrderRequest()

void onNewOrderRequest ( const NewOrderRequest order,
Testing::Gateway * gateway )
inlineoverride

Definition at line 27 of file BenchmarkGatewayListener.h.

28 {
29 const auto sinchEpoch = UtcWatch::now().sinceEpoch();
30 constexpr static auto sid = 123;
31 const OrderExecID id{sid, reportsCounter_, sinchEpoch};
32 report_->clOrdId(order.clOrdId()).execId(id);
33
34 // Send the ExecutionReportNew message to the session.
35 gateway->send(report_, ++reportsCounter_);
36 }