OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
openpit::model::Trade Struct Reference

Public Member Functions

OpenPitExecutionReportTrade Raw () const noexcept
 
 Trade (param::Price tradePrice, param::Quantity tradeQuantity)
 

Static Public Member Functions

static Trade FromRaw (const OpenPitExecutionReportTrade &raw)
 

Public Attributes

param::Price price
 
param::Quantity quantity
 

Constructor & Destructor Documentation

◆ Trade()

openpit::model::Trade::Trade ( param::Price  tradePrice,
param::Quantity  tradeQuantity 
)
inline

Member Function Documentation

◆ FromRaw()

static Trade openpit::model::Trade::FromRaw ( const OpenPitExecutionReportTrade &  raw)
inlinestatic

◆ Raw()

OpenPitExecutionReportTrade openpit::model::Trade::Raw ( ) const
inlinenoexcept

Member Data Documentation

◆ price

param::Price openpit::model::Trade::price

◆ quantity

param::Quantity openpit::model::Trade::quantity