Helpers

Fill

struct roq::Fill

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

Public Members

double quantity = NaN

Quantity.

double price = NaN

Price.

uint32_t trade_id = {}

Trade identifier (as known to client)

uint32_t gateway_trade_id = {}

Trade identifier (as known to gateway)

roq::string_buffer<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 = NaN

Bid price level.

double bid_quantity = {}

Total quantity available at bid.

double ask_price = NaN

Ask price level.

double ask_quantity = {}

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 = NaN

Order price.

double remaining_quantity = {}

Remaining order quantity.

OrderUpdateAction action = {}

Order update action.

uint32_t priority = {}

Queue priority.

roq::string_buffer<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 = NaN

Price level.

double quantity = {}

Total quantity available at price.

Statistics

struct roq::Statistics

Represents a single statistic.

Public Members

StatisticsType type = {}

Statistics type.

double value = NaN

Value.

Trade

struct roq::Trade

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

Public Members

Side side = {}

Side (by convention: side of the taker)

double price = NaN

Price.

double quantity = NaN

Quantity.

roq::string_buffer<40> trade_id

Trade identifier (as known to client)