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

The four identity fields, stored inline in the order and width used by OrderResponse. More...

#include <common/order.hpp>

Inheritance diagram for slick::sim::OrderIdentity:
Collaboration diagram for slick::sim::OrderIdentity:

Public Attributes

utils::fixed_string< 32 > symbol
utils::fixed_string< 37 > user_id
utils::fixed_string< 37 > client_order_id
utils::fixed_string< 37 > order_id

Detailed Description

The four identity fields, stored inline in the order and width used by OrderResponse.

This avoids four heap allocations and lets the publisher copy the header with one memcpy, without reading past a short string's buffer.

Order derives from this type to keep the block contiguous and separately addressable. messages.hpp checks the layout against OrderResponse at compile time, so a field-size change cannot silently shift the wire identifiers.

Definition at line 288 of file order.hpp.

Member Data Documentation

◆ client_order_id

◆ order_id

◆ symbol

◆ user_id


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