OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
Loading...
Searching...
No Matches
openpit::model::Trade Struct Reference

#include <model.hpp>

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()

Trade openpit::model::Trade::FromRaw ( const OpenPitExecutionReportTrade & raw)
inlinestaticnodiscard

◆ Raw()

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

Member Data Documentation

◆ price

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

◆ quantity

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