CliCommandType
What a CLI request asks for. The values are on the wire: append, never renumber.
@ REJECT_LOGON
A venue. flag 1 refuses the logons of ID arg from now on, 0 stops.
@ START_REPLAY
pcap. Starts each feed's replay, as a control-channel START does.
@ GET_VERSION
Any target. The CLI server answers with slick-sim's version.
@ LIST_REJECTS
A venue. The IDs both of the above apply to.
@ REJECT_NEW_ORDERS
A venue. flag 1 rejects every new order of ID arg, 0 stops.
@ SET_LOG_LEVEL
sim. arg is the level; empty reports the current one.
@ LIST_TARGETS
Any target. The CLI server answers with every target it routes to.
@ PCAP_STATUS
pcap. Each feed's state, progress and window.
@ SHUTDOWN
sim. Stops the simulator.
@ LIST_FEEDS
Any target. The CLI server answers with every enabled market-data feed.
FeedState
Where a pcap replay feed is. The values are on the wire: append, never renumber.
@ READY
The book is built and held. Replay starts when a client sends START.
@ FINISHED
The window is replayed out.
@ REPLAYING
Publishing the capture.
@ ERROR
The feed failed; message says why.
@ SYNCING
Building the book from the snapshot and incremental captures. Nothing is published.
@ LOADING
Opening the capture files and reading up to the window's begin.
constexpr const char * to_string(FeedState state) noexcept
@ CLI_REQUEST
Client to sim, on the CLI port: CliRequestMessage.
@ FEED_STATUS
Sim to client.
@ START
Client to sim: start the replay.
@ CLI_REPLY
Sim to client, on the CLI port: CliReplyMessage.
The answer to a CliRequestMessage.
CliStatus status
OK only when every endpoint the command reached said OK.
One command to the simulator, on the CLI port.
char arg[64]
The ID or level. NUL-padded.
uint8_t flag
1 on, 0 off, for the commands that toggle.
char target[32]
sim, a venue (cme), an instance (cme/<segment>). NUL-padded.
uint32_t request_id
The client's own, echoed in the reply.
char feed[32]
The feed's name, as configured.
char message[96]
Free text, NUL-terminated. The reason, in ERROR. Cut to fit; CLI status reports more of it.
uint16_t progress_permille
0-1000 through the window, by capture time.
double speed
The configured replay speed; 0 is unpaced.
uint64_t begin_ns
The configured window and the capture time reached, nanoseconds since the epoch.
uint8_t venue
common/types.hpp Venue.
Starts the replay of every loaded instrument.