|
OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
|
Built-in spot-funds self-computed P&L bounds kill switch. More...
#include <policies.hpp>
Public Member Functions | |
| SpotFundsPnlBoundsKillSwitchPolicy & | AccountBarrier (SpotFundsPnlBoundsAccountBarrier barrier) |
| Adds an account account-currency P&L barrier. | |
| SpotFundsPnlBoundsKillSwitchPolicy & | AccountGroupBarrier (SpotFundsPnlBoundsAccountGroupBarrier barrier) |
| Adds an account-group account-currency P&L barrier. | |
| void | AddTo (::openpit::EngineBuilder &builder) const |
| Registers the policy on builder. | |
| SpotFundsPnlBoundsKillSwitchPolicy & | GlobalBarrier (SpotFundsPnlBoundsBarrier barrier) |
| Adds a global account-currency P&L barrier. | |
| SpotFundsPnlBoundsKillSwitchPolicy & | PolicyGroupId (std::uint16_t policyGroupId) |
| Assigns the policy to a pricing group. | |
| SpotFundsPnlBoundsKillSwitchPolicy & | WithMarketData (const ::openpit::marketdata::Service &marketData) noexcept |
| Sets the market-data service used for FX conversion. | |
| SpotFundsPnlBoundsKillSwitchPolicy & | WithMarketData (const OpenPitMarketDataService *marketData) noexcept |
| Sets the borrowed raw market-data service handle used for FX conversion. | |
Built-in spot-funds self-computed P&L bounds kill switch.
This registers the regular SpotFundsPolicy name and configures its account-currency P&L-bounds axis. The policy computes realized P&L from reconciled fills instead of trusting an externally supplied P&L figure.
|
inline |
Adds an account account-currency P&L barrier.
|
inline |
Adds an account-group account-currency P&L barrier.
|
inline |
Registers the policy on builder.
|
inline |
Adds a global account-currency P&L barrier.
|
inline |
Assigns the policy to a pricing group.
|
inlinenoexcept |
Sets the market-data service used for FX conversion.
|
inlinenoexcept |
Sets the borrowed raw market-data service handle used for FX conversion.