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

The replay feed's state. More...

#include <common/control_messages.hpp>

Collaboration diagram for slick::sim::FeedStatusMessage:

Public Attributes

ControlHeader header
uint8_t venue
 common/types.hpp Venue.
FeedState state
char feed [32]
 The feed's name, as configured.
uint64_t begin_ns
 The configured window and the capture time reached, nanoseconds since the epoch.
uint64_t end_ns
uint64_t current_ns
uint16_t progress_permille
 0-1000 through the window, by capture time.
double speed
 The configured replay speed; 0 is unpaced.
char message [96]
 Free text, NUL-terminated. The reason, in ERROR. Cut to fit; CLI status reports more of it.

Detailed Description

The replay feed's state.

Sent to a client when it connects, whenever the state changes, and about once a second while the feed is working (progress).

Definition at line 92 of file control_messages.hpp.

Member Data Documentation

◆ begin_ns

uint64_t slick::sim::FeedStatusMessage::begin_ns

The configured window and the capture time reached, nanoseconds since the epoch.

The published market data is stamped with the wall clock, so this is the only place the capture's own time is reported.

Definition at line 100 of file control_messages.hpp.

◆ current_ns

uint64_t slick::sim::FeedStatusMessage::current_ns

Definition at line 102 of file control_messages.hpp.

◆ end_ns

uint64_t slick::sim::FeedStatusMessage::end_ns

Definition at line 101 of file control_messages.hpp.

◆ feed

char slick::sim::FeedStatusMessage::feed[32]

The feed's name, as configured.

Definition at line 96 of file control_messages.hpp.

◆ header

ControlHeader slick::sim::FeedStatusMessage::header

Definition at line 93 of file control_messages.hpp.

◆ message

char slick::sim::FeedStatusMessage::message[96]

Free text, NUL-terminated. The reason, in ERROR. Cut to fit; CLI status reports more of it.

Definition at line 106 of file control_messages.hpp.

◆ progress_permille

uint16_t slick::sim::FeedStatusMessage::progress_permille

0-1000 through the window, by capture time.

Definition at line 103 of file control_messages.hpp.

◆ speed

double slick::sim::FeedStatusMessage::speed

The configured replay speed; 0 is unpaced.

Definition at line 104 of file control_messages.hpp.

◆ state

FeedState slick::sim::FeedStatusMessage::state

Definition at line 95 of file control_messages.hpp.

◆ venue

uint8_t slick::sim::FeedStatusMessage::venue

common/types.hpp Venue.

Definition at line 94 of file control_messages.hpp.


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