|
Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
|
Go to the source code of this file.
Namespaces | |
| namespace | slick |
| namespace | slick::sim |
| namespace | slick::sim::utils |
| Conversions between wire decimals with a constant exponent of -9 (CME PRICE9, ICE Decimal9) and the simulator's 1e-8 fixed point. | |
Functions | |
| constexpr bool | slick::sim::utils::from_decimal9 (int64_t mantissa, int64_t &out) noexcept |
| Returns false when the value has a digit at 1e-9. | |
| constexpr int64_t | slick::sim::utils::to_decimal9 (int64_t fixed) noexcept |
| The inverse. | |
Variables | |
| constexpr int64_t | slick::sim::utils::DECIMAL9_PER_FIXED = 1'000'000'000 / DOUBLE_MULTIPLIER |
| A 1e-9 mantissa is one decimal place finer than the simulator's scale. | |