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

A response describing a trade that occurred for a limit / market order. More...

#include <messages.hpp>

Public Member Functions

 TradeResponse (SequenceNumber sequence, OrderID order_id_, Price price_, Quantity quantity_, Quantity leaves_quantity_, Side side_)
 Initialize a new trade response 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 ID for the order connected to the trade
 
const Price price
 the price the trade executed at
 
const Quantity quantity
 the number of shares that were exchanges
 
const Quantity leaves_quantity
 the number of shares that remain in the book
 
const Side side
 the original side of the order
 

Friends

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

Detailed Description

A response describing a trade that occurred for a limit / market order.

Trade Response

Constructor & Destructor Documentation

◆ TradeResponse()

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

Initialize a new trade response message.

Parameters
sequencethe sequence number for the message
order_id_the ID for the order connected to the trade
price_the price the trade executed at
quantity_the number of shares that were exchanges
leaves_quantity_the number of shares that remain in the book
side_the original side of the order

Member Function Documentation

◆ to_string()

std::string OrderEntry::Messages::TradeResponse::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 TradeResponse 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: