FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::HedgeExecutor::Config Struct Reference

#include <fastmm/strategies/hedge_executor.hpp>

Public Attributes

std::string_view name = "hedge"
 log prefix
 
std::uint32_t tag = 0
 user_tag of hedge orders
 
std::uint32_t derisk_tag = 0
 user_tag of de-risk orders
 
Duration retry = milliseconds(200)
 after a hedge that filled nothing
 
int max_failures = 5
 within failure_window: bench, or halt on the last one
 
Duration failure_window = milliseconds(60000)
 
Duration uncertain_hold = milliseconds(5000)
 
Duration stale {}
 a hedge book older than this is unusable; 0: never
 
Duration bench = milliseconds(60000)
 how long a failing instrument sits out
 
Duration derisk_after {}
 0: never de-risk
 
Qty derisk_step {}
 base units per de-risk order; 0: the whole residual
 
Duration derisk_interval = milliseconds(1000)
 
Ratio derisk_tolerance {}
 
Notional band {}
 Bands, quote currency at the hedge instrument's mid: hedge once the residual is worth band, then until it is worth less than flat (0: any residual; until it rounds under the lot).
 
Notional flat {}
 
bool maker = false
 Maker mode: a post-only order at the hedge's own touch instead of an IOC.
 
Duration repeg = milliseconds(100)
 
Notional resize {}
 
Duration taker_after {}
 

Member Data Documentation

◆ name

std::string_view fastmm::HedgeExecutor::Config::name = "hedge"

log prefix

◆ tag

std::uint32_t fastmm::HedgeExecutor::Config::tag = 0

user_tag of hedge orders

◆ derisk_tag

std::uint32_t fastmm::HedgeExecutor::Config::derisk_tag = 0

user_tag of de-risk orders

◆ retry

Duration fastmm::HedgeExecutor::Config::retry = milliseconds(200)

after a hedge that filled nothing

◆ max_failures

int fastmm::HedgeExecutor::Config::max_failures = 5

within failure_window: bench, or halt on the last one

◆ failure_window

Duration fastmm::HedgeExecutor::Config::failure_window = milliseconds(60000)

◆ uncertain_hold

Duration fastmm::HedgeExecutor::Config::uncertain_hold = milliseconds(5000)

◆ stale

Duration fastmm::HedgeExecutor::Config::stale {}

a hedge book older than this is unusable; 0: never

◆ bench

Duration fastmm::HedgeExecutor::Config::bench = milliseconds(60000)

how long a failing instrument sits out

◆ derisk_after

Duration fastmm::HedgeExecutor::Config::derisk_after {}

0: never de-risk

◆ derisk_step

Qty fastmm::HedgeExecutor::Config::derisk_step {}

base units per de-risk order; 0: the whole residual

◆ derisk_interval

Duration fastmm::HedgeExecutor::Config::derisk_interval = milliseconds(1000)

◆ derisk_tolerance

Ratio fastmm::HedgeExecutor::Config::derisk_tolerance {}

◆ band

Notional fastmm::HedgeExecutor::Config::band {}

Bands, quote currency at the hedge instrument's mid: hedge once the residual is worth band, then until it is worth less than flat (0: any residual; until it rounds under the lot).

◆ flat

Notional fastmm::HedgeExecutor::Config::flat {}

◆ maker

bool fastmm::HedgeExecutor::Config::maker = false

Maker mode: a post-only order at the hedge's own touch instead of an IOC.

It follows the touch at most every repeg, is placed again when its leaves are resize off the residual (0: never), and what it leaves after resting taker_after crosses (0: never).

◆ repeg

Duration fastmm::HedgeExecutor::Config::repeg = milliseconds(100)

◆ resize

Notional fastmm::HedgeExecutor::Config::resize {}

◆ taker_after

Duration fastmm::HedgeExecutor::Config::taker_after {}