|
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
|
One maker/taker pair. 1 cbps == 0.01 bps == 1e-6 of the notional. More...
#include <fastmm/core/fees.hpp>
Public Member Functions | |
| constexpr double | maker_bps () const noexcept |
| constexpr double | taker_bps () const noexcept |
| constexpr std::int64_t | cbps (Liquidity l) const noexcept |
| constexpr Notional | fee (Notional notional, Liquidity l) const noexcept |
| constexpr Notional | fee (Price px, Qty qty, Liquidity l) const noexcept |
| constexpr bool | operator== (const FeeRates &) const noexcept=default |
Static Public Member Functions | |
| static FeeRates | from_bps (double maker_bps, double taker_bps) noexcept |
| static constexpr std::int32_t | to_cbps (double bps) noexcept |
Public Attributes | |
| std::int32_t | maker_cbps = 0 |
| > 0 fee, < 0 rebate | |
| std::int32_t | taker_cbps = 0 |
One maker/taker pair. 1 cbps == 0.01 bps == 1e-6 of the notional.
|
inlinestaticnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
| std::int32_t fastmm::FeeRates::maker_cbps = 0 |
> 0 fee, < 0 rebate
| std::int32_t fastmm::FeeRates::taker_cbps = 0 |