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

#include <accounts.hpp>

Public Member Functions

 AccountBlock ()=default
 AccountBlock (::openpit::pretrade::RejectCode blockCode, std::string policyName, std::string blockReason, std::string blockDetails)
OpenPitPretradeAccountBlock Raw () const noexcept

Static Public Member Functions

static AccountBlock FromRaw (const OpenPitPretradeAccountBlock &raw)

Public Attributes

::openpit::pretrade::RejectCode code = ::openpit::pretrade::RejectCode::Other
std::string details
std::string policy
std::string reason
std::uintptr_t userData = 0

Constructor & Destructor Documentation

◆ AccountBlock() [1/2]

openpit::accounts::AccountBlock::AccountBlock ( )
default

◆ AccountBlock() [2/2]

openpit::accounts::AccountBlock::AccountBlock ( ::openpit::pretrade::RejectCode blockCode,
std::string policyName,
std::string blockReason,
std::string blockDetails )
inline

Member Function Documentation

◆ FromRaw()

AccountBlock openpit::accounts::AccountBlock::FromRaw ( const OpenPitPretradeAccountBlock & raw)
inlinestaticnodiscard

◆ Raw()

OpenPitPretradeAccountBlock openpit::accounts::AccountBlock::Raw ( ) const
inlinenodiscardnoexcept

Member Data Documentation

◆ code

◆ details

std::string openpit::accounts::AccountBlock::details

◆ policy

std::string openpit::accounts::AccountBlock::policy

◆ reason

std::string openpit::accounts::AccountBlock::reason

◆ userData

std::uintptr_t openpit::accounts::AccountBlock::userData = 0