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

One trade the venue reports, with the side that crossed the spread. More...

#include <exchange/market_events.hpp>

Collaboration diagram for slick::sim::exch::MarketTradeEvent:

Public Attributes

price_t price = 0
qty_t qty = 0
Side aggressor = Side::BUY
uint64_t transact_time = 0

Detailed Description

One trade the venue reports, with the side that crossed the spread.

Replayed with Exchange::replayMarketTrade as an aggressor order, so a client order queued ahead of the market orders it filled is filled first.

Definition at line 41 of file market_events.hpp.

Member Data Documentation

◆ aggressor

Side slick::sim::exch::MarketTradeEvent::aggressor = Side::BUY

Definition at line 44 of file market_events.hpp.

Referenced by slick::sim::exch::Exchange::replayMarketTrade().

◆ price

price_t slick::sim::exch::MarketTradeEvent::price = 0

Definition at line 42 of file market_events.hpp.

Referenced by slick::sim::exch::Exchange::replayMarketTrade().

◆ qty

qty_t slick::sim::exch::MarketTradeEvent::qty = 0

Definition at line 43 of file market_events.hpp.

◆ transact_time

uint64_t slick::sim::exch::MarketTradeEvent::transact_time = 0

Definition at line 45 of file market_events.hpp.

Referenced by slick::sim::exch::Exchange::replayMarketTrade().


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