|
exchange
Low-latency exchange in C++
|
#include <matching_engine.hpp>
Public Member Functions | |
| MatchingEngine (const EventMpscQueue &inQueue, const ActionSpmcSender &actionSender, std::span< const SecurityId > securities) | |
| void | loop () |
| std::vector< Action > | processEvent (const Event &event) |
| exchange::server::MatchingEngine::MatchingEngine | ( | const EventMpscQueue & | inQueue, |
| const ActionSpmcSender & | actionSender, | ||
| std::span< const SecurityId > | securities ) |
| void exchange::server::MatchingEngine::loop | ( | ) |
Perform one iteration of the matching engine's workflow.
Pops from and pushes to once on the shared memory queues.


Given an event from the gateway requesting that something happen to an order, potentially act on that request to mutate the orderbook and obtain a list of changes to it, for downstream consumers.
| event | The event coming from the gateway. |
