51 return "venue_killed";
63 return "fill_cluster";
Definition strategy.hpp:23
QuoteBlock
The first obstacle between what the strategy asked for on a side and orders working there.
Definition quote_diag.hpp:26
@ Pulled
this instrument or its venue is pulled (fastmm-ctl pull --instrument/--venue)
@ Starved
waiting for an order token ([risk] orders_per_sec)
@ Pending
orders on their way: sent, not yet working, or a requote waiting its turn
@ NotTrading
the venue does not trade the instrument now (Instrument::status)
@ Backoff
a venue refusal put the side in its reject backoff
@ QuotingOff
the session does not quote: pulled, killed, reconciling, parameters stale
@ FillCluster
the fill-cluster guard holds the side ([risk] fill_cluster_names)
@ FeedLag
the venue's feed-lag gate holds ([risk] max_feed_lag_ms)
@ Quoting
the working orders cover what the strategy asked for
@ Window
an open [[windows]] window with action = "pull" covers the instrument
@ VenueKilled
its venue's kill switch
@ NotWanted
the strategy asks for nothing on this side (its note may say why)
@ Hazard
a hazard group holds the side ([[risk.hazard]])
@ Refused
the last order on the side was refused (reason) within the last 2 s
constexpr std::size_t kMaxStrategyMetrics
Definition quote_diag.hpp:20
constexpr std::size_t kQuoteNoteLen
QuoteNote::reason, NUL-terminated.
Definition quote_diag.hpp:19
RejectReason
Ordered exactly like RiskEngine::check_new evaluates them (5.7), followed by OMS / transport / venue ...
Definition enums.hpp:123
@ FeedLag
[risk] max_feed_lag_ms: the venue's market data is late (core/venue_health.hpp) and the order could r...
constexpr std::size_t kQuoteDiagAccounts
a pool's accounts (EngineConfig::pools)
Definition quote_diag.hpp:22
constexpr std::string_view to_string(ParamType t) noexcept
Definition params.hpp:63
constexpr std::size_t kStrategyMetricNameLen
Definition quote_diag.hpp:21
A number the strategy publishes by name (ctx.metric): a budget split, a model state.
Definition quote_diag.hpp:125
double value
Definition quote_diag.hpp:127
char name[kStrategyMetricNameLen]
Definition quote_diag.hpp:126
Definition quote_diag.hpp:107
std::uint8_t arm
the [ab] arm it is in: 0 none, k + 1 arm k
Definition quote_diag.hpp:111
std::int64_t unrealized_raw
Definition quote_diag.hpp:119
std::uint8_t pad_[6]
Definition quote_diag.hpp:115
std::int64_t realized_raw
Definition quote_diag.hpp:118
std::int64_t avg_px_raw
Definition quote_diag.hpp:117
LiveQuoteSide sides[2]
by Side: Buy, Sell
Definition quote_diag.hpp:121
std::int64_t mid_raw
0: no two-sided book
Definition quote_diag.hpp:120
std::uint8_t pieces
accounts other than the home that hold it
Definition quote_diag.hpp:114
std::uint8_t venue
Definition quote_diag.hpp:109
std::uint8_t home
its home's venue id in its account pool (0xFF: none)
Definition quote_diag.hpp:113
std::uint8_t own_params
parameters it holds values of its own for
Definition quote_diag.hpp:112
std::uint32_t instrument
Definition quote_diag.hpp:108
std::int64_t position_raw
Definition quote_diag.hpp:116
std::uint8_t reduce_only
reduce-only mode holds the instrument
Definition quote_diag.hpp:110
One side of an instrument as the engine publishes it (EngineLiveStats::quotes).
Definition quote_diag.hpp:91
std::int64_t account_qty_raw[kQuoteDiagAccounts]
Leaves of the working quotes by pool account (index in the pool, 0 the primary).
Definition quote_diag.hpp:97
RejectReason reason
block Refused: the refusal; otherwise None
Definition quote_diag.hpp:102
std::uint8_t pad_[3]
Definition quote_diag.hpp:103
std::int64_t working_qty_raw
leaves of every open order on the side
Definition quote_diag.hpp:95
std::int64_t block_since_ns
engine time block began
Definition quote_diag.hpp:98
std::int64_t working_px_raw
best working quote price (0: none)
Definition quote_diag.hpp:94
std::uint8_t desired_levels
Definition quote_diag.hpp:100
QuoteNote note
Definition quote_diag.hpp:104
std::int64_t desired_qty_raw
over every level
Definition quote_diag.hpp:93
std::uint16_t working_orders
Definition quote_diag.hpp:99
QuoteBlock block
Definition quote_diag.hpp:101
std::int64_t desired_px_raw
level 0 of the strategy's last ladder (0: none)
Definition quote_diag.hpp:92
What the strategy says about a side (ctx.note_quote): a short reason ("inventory_cap",...
Definition quote_diag.hpp:79
std::string_view reason_view() const noexcept
Definition quote_diag.hpp:83
char reason[kQuoteNoteLen]
Definition quote_diag.hpp:80
std::int64_t budget_raw
Definition quote_diag.hpp:81
std::int64_t set_ns
engine time of the note
Definition quote_diag.hpp:82