#include <fastmm/core/capacity_price.hpp>
|
| bool | on () const noexcept |
| |
|
| CapacityMode | mode = CapacityMode::Off |
| |
| CapacityValue | value = CapacityValue::Off |
| |
| std::int64_t | window_ms = 10'000 |
| | Each account's order window: its length and the orders it admits (Binance Spot: 10 s, 100).
|
| |
| std::int64_t | orders_10s = 0 |
| |
| bool | fill_credit = false |
| | The venue gives a slot back on an order's first fill (Binance's unfilled order count).
|
| |
| std::int64_t | orders_1d = 0 |
| | Each account's orders per UTC day (Binance Spot: 200,000); 0: no day price per account.
|
| |
| std::int64_t | orders_per_day = 0 |
| | The strategy's own orders per UTC day over every account; 0: no budget.
|
| |
| std::int64_t | weight_1m = 0 |
| | Request weight per minute shared by the accounts of a pool (one IP); 0: not priced.
|
| |
| double | margin_bps = 1.0 |
| | value = "learned": what a filled unit of notional earns, bps (rebate plus edge).
|
| |
| double | full_move_bps = 10.0 |
| | A move of this many bps or more is worth a whole new order when the strategy states no keep value: the resting order keeps value * (1 - move / full_move_bps).
|
| |
| double | min_notional = 0.0 |
| | The threshold's range in notional, filled by the engine: the smallest minimum notional of the instruments and [risk] max_order_notional (quote currency).
|
| |
| double | max_notional = 0.0 |
| |
| std::uint32_t | accounts = ~0U |
| | The accounts priced, bit per VenueId ([capacity] venues: those venues and their pools' members); the others are neither priced nor counted.
|
| |
◆ on()
| bool fastmm::CapacityConfig::on |
( |
| ) |
const |
|
inlinenoexcept |
◆ mode
◆ value
◆ window_ms
| std::int64_t fastmm::CapacityConfig::window_ms = 10'000 |
Each account's order window: its length and the orders it admits (Binance Spot: 10 s, 100).
0 orders: the window is not priced.
◆ orders_10s
| std::int64_t fastmm::CapacityConfig::orders_10s = 0 |
◆ fill_credit
| bool fastmm::CapacityConfig::fill_credit = false |
The venue gives a slot back on an order's first fill (Binance's unfilled order count).
◆ orders_1d
| std::int64_t fastmm::CapacityConfig::orders_1d = 0 |
Each account's orders per UTC day (Binance Spot: 200,000); 0: no day price per account.
◆ orders_per_day
| std::int64_t fastmm::CapacityConfig::orders_per_day = 0 |
The strategy's own orders per UTC day over every account; 0: no budget.
◆ weight_1m
| std::int64_t fastmm::CapacityConfig::weight_1m = 0 |
Request weight per minute shared by the accounts of a pool (one IP); 0: not priced.
A new order, a replace and a cancel each count 1.
◆ margin_bps
| double fastmm::CapacityConfig::margin_bps = 1.0 |
value = "learned": what a filled unit of notional earns, bps (rebate plus edge).
◆ full_move_bps
| double fastmm::CapacityConfig::full_move_bps = 10.0 |
A move of this many bps or more is worth a whole new order when the strategy states no keep value: the resting order keeps value * (1 - move / full_move_bps).
◆ min_notional
| double fastmm::CapacityConfig::min_notional = 0.0 |
The threshold's range in notional, filled by the engine: the smallest minimum notional of the instruments and [risk] max_order_notional (quote currency).
◆ max_notional
| double fastmm::CapacityConfig::max_notional = 0.0 |
◆ accounts
| std::uint32_t fastmm::CapacityConfig::accounts = ~0U |
The accounts priced, bit per VenueId ([capacity] venues: those venues and their pools' members); the others are neither priced nor counted.