CBOE Emulator  1.0
Public Member Functions | Public Attributes | Friends | List of all members
OrderEntry::Messages::ReplaceRequest Struct Reference

A request to replace an active order in the book with a new order. More...

#include <messages.hpp>

Public Member Functions

 ReplaceRequest (SequenceNumber sequence, OrderID order_id_, Price price_, Quantity quantity_, Side side_)
 Initialize a new order replace message. More...
 
std::string to_string () const
 Convert the object to an STL string. More...
 

Public Attributes

const Header header
 the header for the message
 
const OrderID order_id
 the order ID of the order to replace
 
const Price price
 the price for the order
 
const Quantity quantity
 the quantity of the order
 
const Side side
 the side of the order
 

Friends

std::ostream & operator<< (std::ostream &stream, const ReplaceRequest &message)
 Write the data from the message to a stream. More...
 

Detailed Description

A request to replace an active order in the book with a new order.

Replace Request

Constructor & Destructor Documentation

◆ ReplaceRequest()

OrderEntry::Messages::ReplaceRequest::ReplaceRequest ( SequenceNumber  sequence,
OrderID  order_id_,
Price  price_,
Quantity  quantity_,
Side  side_ 
)
inline

Initialize a new order replace message.

Parameters
sequencethe sequence number for the message
order_id_the order ID of the order to replace
price_the price for the order
quantity_the quantity of the order
side_the side for the order

Member Function Documentation

◆ to_string()

std::string OrderEntry::Messages::ReplaceRequest::to_string ( ) const
inline

Convert the object to an STL string.

Returns
a string representation of the object

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const ReplaceRequest message 
)
friend

Write the data from the message to a stream.

Parameters
streamthe stream to write the data to
messagethe message to write to the stream
Returns
the stream with data from the message written to it

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