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

#include <common/messages.hpp>

Collaboration diagram for slick::sim::TradeSummaryInfo:

Public Member Functions

 TradeSummaryInfo ()
 One aggressor leg plus the resting legs it swept.

Public Attributes

time_t timestamp = 0
uint64_t trade_id
Side aggressor_side
price_t price
qty_t qty
qty_t phantom_qty = 0
 Portion of qty that was matched against phantom (market-mirroring) liquidity rather than the simulator's own resting orders.
int32_t num_orders
std::vector< Trade > Trades

Detailed Description

Definition at line 381 of file messages.hpp.

Constructor & Destructor Documentation

◆ TradeSummaryInfo()

slick::sim::TradeSummaryInfo::TradeSummaryInfo ( )
inline

One aggressor leg plus the resting legs it swept.

A summary covers a single price level, so the leg count is small and bounded in practice - reserving up front turns the 2 reallocations a two-leg fill would otherwise make (capacity 1, then 2) into one allocation, and covers deeper sweeps free.

Definition at line 399 of file messages.hpp.

References Trades.

Member Data Documentation

◆ aggressor_side

Side slick::sim::TradeSummaryInfo::aggressor_side

◆ num_orders

int32_t slick::sim::TradeSummaryInfo::num_orders

◆ phantom_qty

qty_t slick::sim::TradeSummaryInfo::phantom_qty = 0

Portion of qty that was matched against phantom (market-mirroring) liquidity rather than the simulator's own resting orders.

Internal only - the exchange uses it to avoid reducing a level twice when the venue's level update for the same trade arrives. Not part of the wire format.

Definition at line 391 of file messages.hpp.

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

◆ price

price_t slick::sim::TradeSummaryInfo::price

◆ qty

qty_t slick::sim::TradeSummaryInfo::qty

◆ timestamp

time_t slick::sim::TradeSummaryInfo::timestamp = 0

◆ trade_id

uint64_t slick::sim::TradeSummaryInfo::trade_id

Definition at line 383 of file messages.hpp.

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

◆ Trades

std::vector<Trade> slick::sim::TradeSummaryInfo::Trades

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