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

A message that indicates a limit order was added to the book. More...

#include <messages.hpp>

Public Member Functions

 AddOrder (OrderID uid_, Price price_, Quantity quantity_, Side side_, SequenceNumber sequence=0, TimeStamp time=0)
 Initialize a new add order message. More...
 
std::string to_string () const
 Convert the object to an STL string. More...
 

Public Attributes

const Header header
 the message header that defines the template ID and length of message
 
const OrderID uid
 the day specific ID for the order
 
const Price price
 the price of 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 AddOrder &message)
 Write the data from the message to a stream. More...
 

Detailed Description

A message that indicates a limit order was added to the book.

Add Order Message

Constructor & Destructor Documentation

◆ AddOrder()

DataFeed::Messages::AddOrder::AddOrder ( OrderID  uid_,
Price  price_,
Quantity  quantity_,
Side  side_,
SequenceNumber  sequence = 0,
TimeStamp  time = 0 
)
inline

Initialize a new add order message.

Parameters
uid_the day specific ID for the order
price_the price of the order
quantity_the quantity of the order
side_the side of the order
sequencethe sequence number for the message
timethe time for the message

Member Function Documentation

◆ to_string()

std::string DataFeed::Messages::AddOrder::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 AddOrder 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: