Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::engine::detail::MatchContext Struct Reference

State one match() call carries through its fills. More...

#include <matching_engine/match_common.hpp>

Collaboration diagram for slick::sim::engine::detail::MatchContext:

Public Attributes

MatchingEngine & engine
OrderBook & book
slick::sim::time_t event_time
uint64_t seq_num
std::vector< TradeSummaryInfo > summaries {}
price_t last_fill_price = NULL_PRICE
size_t legs_hint = 0
 Legs a summary started at the current level may reach, aggressor included.

Detailed Description

State one match() call carries through its fills.

Definition at line 235 of file match_common.hpp.

Member Data Documentation

◆ book

OrderBook& slick::sim::engine::detail::MatchContext::book

◆ engine

MatchingEngine& slick::sim::engine::detail::MatchContext::engine

◆ event_time

◆ last_fill_price

price_t slick::sim::engine::detail::MatchContext::last_fill_price = NULL_PRICE

Definition at line 241 of file match_common.hpp.

Referenced by slick::sim::engine::detail::recordTrade().

◆ legs_hint

size_t slick::sim::engine::detail::MatchContext::legs_hint = 0

Legs a summary started at the current level may reach, aggressor included.

Pro-rata fills every order on a level at once, so it sets this to size the summary's Trades once; FIFO leaves it 0.

Definition at line 245 of file match_common.hpp.

Referenced by slick::sim::engine::detail::recordTrade().

◆ seq_num

uint64_t slick::sim::engine::detail::MatchContext::seq_num

◆ summaries

std::vector<TradeSummaryInfo> slick::sim::engine::detail::MatchContext::summaries {}

Definition at line 240 of file match_common.hpp.

Referenced by slick::sim::engine::detail::recordTrade().


The documentation for this struct was generated from the following file: