|
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...
Public Member Functions | |
| SpotFundsPnlBoundsKillSwitchPolicy & | AccountBarrier (SpotFundsPnlBoundsAccountBarrier barrier) |
| Adds an account P&L barrier. More... | |
| SpotFundsPnlBoundsKillSwitchPolicy & | AccountGroupBarrier (SpotFundsPnlBoundsAccountGroupBarrier barrier) |
| Adds an account-group account P&L barrier. More... | |
| void | AddTo (::openpit::EngineBuilder &builder) const |
Registers the policy on builder. More... | |
| SpotFundsPnlBoundsKillSwitchPolicy & | GlobalBarrier (SpotFundsPnlBoundsBarrier barrier) |
| Sets the global account P&L barrier. More... | |
| SpotFundsPnlBoundsKillSwitchPolicy & | PolicyGroupId (std::uint16_t policyGroupId) |
| Assigns the policy to a pricing group. More... | |
| SpotFundsPnlBoundsKillSwitchPolicy & | WithMarketData (const ::openpit::marketdata::Service &marketData) noexcept |
| Sets the market-data service used for FX conversion. More... | |
| SpotFundsPnlBoundsKillSwitchPolicy & | WithMarketData (const OpenPitMarketDataService *marketData) noexcept |
| Sets the borrowed raw market-data service handle used for FX conversion. More... | |
Built-in spot-funds self-computed P&L bounds kill switch.
This registers the regular SpotFundsPolicy name and configures its account P&L-bounds axis. The policy computes realized P&L from reconciled fills instead of trusting an externally supplied P&L figure. Its SpotFunds limit mode is TrackOnly: holdings and P&L are updated, but insufficient-funds gating is disabled. Mark pricing is used for market orders.
|
inline |
Adds an account P&L barrier.
|
inline |
Adds an account-group account P&L barrier.
|
inline |
Registers the policy on builder.
|
inline |
Sets the global account 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.