![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
Detects whether a source declares static constexpr bool reports_buying_power = true, meaning its broker reports buying power (BrokerCaps::has_buying_power). More...
#include <algotradelib/src/runner/loop.hpp>
Detects whether a source declares static constexpr bool reports_buying_power = true, meaning its broker reports buying power (BrokerCaps::has_buying_power).
false when undeclared, as for a broker that reports none: PollingLoop then holds every placement as strategy::HaltReason::BUYING_POWER_UNREAD unless strategy::RiskLimits::run_budget_ is set, and also with one while strategy::RiskLimits::enforce_buying_power_ is on (no reading will arrive), with a note naming the missing declaration. live::SessionSource declares it; a source that wraps one by composition must forward the constant.
| Source | The source type. |