Helpers

Fill

struct roq::Fill

Represents a single fill (match) when an order is being partially or fully filled.

Public Members

double quantity = std::numeric_limits<double>::quiet_NaN()

Quantity.

double price = std::numeric_limits<double>::quiet_NaN()

Price.

uint32_t trade_id = 0

Trade identifier (as known to client)

uint32_t gateway_trade_id = 0

Trade identifier (as known to gateway)

roq::string<40> external_trade_id

External trade identifier (as known to broker or exchange)

Layer

struct roq::Layer

Represents aggregate order book bid/ask information at a given depth.

Public Members

double bid_price = std::numeric_limits<double>::quiet_NaN()

Bid price level.

double bid_quantity = 0.0

Total quantity available at bid.

double ask_price = std::numeric_limits<double>::quiet_NaN()

Ask price level.

double ask_quantity = 0.0

Total quantity available at ask.

MBOUpdate

struct roq::MBOUpdate

Represents the update status of a single order in the order book.

Public Members

double price = std::numeric_limits<double>::quiet_NaN()

Order price.

double remaining_quantity = 0.0

Remaining order quantity.

OrderUpdateAction action = OrderUpdateAction::UNDEFINED

Order update action.

uint32_t priority = 0

Queue priority.

roq::string<40> order_id

Order identifier (as known to client)

MBPUpdate

struct roq::MBPUpdate

Represents the update status of a single aggregate price level in the order book.

Public Members

double price = std::numeric_limits<double>::quiet_NaN()

Price level.

double quantity = 0.0

Total quantity available at price.

Statistics

struct roq::Statistics

Represents a single statistic.

Public Members

StatisticsType type = StatisticsType::UNDEFINED

Statistics type.

double value = std::numeric_limits<double>::quiet_NaN()

Value.

Trade

struct roq::Trade

Represents a single trade (match) as part of trade reporting by the exchange.

Public Members

Side side = Side::UNDEFINED

Side (by convention: side of the taker)

double price = std::numeric_limits<double>::quiet_NaN()

Price.

double quantity = std::numeric_limits<double>::quiet_NaN()

Quantity.

roq::string<40> trade_id

Trade identifier (as known to client)