|
OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
|
#include <policies.hpp>
Public Member Functions | |
| Configurator (const ::openpit::Engine &engine) noexcept | |
| Configurator (OpenPitEngine *engine) noexcept | |
| void | OrderSizeLimit (std::string_view name, std::optional<::openpit::pretrade::policies::OrderSizeBrokerBarrier > broker, std::optional< std::vector<::openpit::pretrade::policies::OrderSizeAssetBarrier > > assets=std::nullopt, std::optional< std::vector< ::openpit::pretrade::policies::OrderSizeAccountAssetBarrier > > accountAssets=std::nullopt) const |
| void | PnlBoundsKillSwitch (std::string_view name, std::optional< std::vector<::openpit::pretrade::policies::PnlBoundsBrokerBarrier > > brokers=std::nullopt, std::optional< std::vector< ::openpit::pretrade::policies::PnlBoundsAccountBarrierUpdate > > accounts=std::nullopt) const |
| void | RateLimit (std::string_view name, std::optional<::openpit::pretrade::policies::RateLimitBrokerBarrier > broker, std::optional< std::vector<::openpit::pretrade::policies::RateLimitAssetBarrier > > assets=std::nullopt, std::optional< std::vector<::openpit::pretrade::policies::RateLimitAccountBarrier > > accounts=std::nullopt, std::optional< std::vector< ::openpit::pretrade::policies::RateLimitAccountAssetBarrier > > accountAssets=std::nullopt) const |
| void | SetAccountPnl (std::string_view name, ::openpit::param::AccountId accountId, std::string_view settlementAsset, ::openpit::param::Pnl pnl) const |
| void | SetSpotFundsAccountPnl (std::string_view name, ::openpit::param::AccountId accountId, std::string_view accountCurrency, ::openpit::param::Pnl pnl) const |
| Force-sets one SpotFunds live account-currency P&L accumulator. | |
| void | SpotFunds (std::string_view name, std::optional< std::uint16_t > globalSlippageBps=std::nullopt, std::optional<::openpit::pretrade::policies::SpotFundsPricingSource > pricingSource=std::nullopt, std::optional< std::vector<::openpit::pretrade::policies::SpotFundsOverride > > overrides=std::nullopt) const |
| void | SpotFundsAccountGroupLimitMode (std::string_view name, ::openpit::param::AccountGroupId accountGroupId, std::optional<::openpit::pretrade::policies::SpotFundsLimitMode > mode) const |
| void | SpotFundsAccountLimitMode (std::string_view name, ::openpit::param::AccountId accountId, std::optional<::openpit::pretrade::policies::SpotFundsLimitMode > mode) const |
| void | SpotFundsGlobalLimitMode (std::string_view name, ::openpit::pretrade::policies::SpotFundsLimitMode mode) const |
| void | SpotFundsPnlBoundsKillSwitch (std::string_view name, std::optional< std::vector<::openpit::pretrade::policies::SpotFundsPnlBoundsBarrier > > global=std::nullopt, std::optional< std::vector< ::openpit::pretrade::policies::SpotFundsPnlBoundsAccountGroupBarrier > > accountGroups=std::nullopt, std::optional< std::vector<::openpit::pretrade::policies::SpotFundsPnlBoundsAccountBarrierUpdate > > accounts=std::nullopt) const |
| Retunes the SpotFunds self-computed P&L bounds axis. | |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Force-sets one SpotFunds live account-currency P&L accumulator.
This is an absolute assignment and is separate from barrier retuning.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Retunes the SpotFunds self-computed P&L bounds axis.
Each optional vector is a PATCH axis: std::nullopt leaves that axis unchanged; an engaged empty vector clears it. Account updates preserve each live accumulated P&L value.