46 return "venue_killed";
Definition strategy.hpp:16
QuoteBlock
The first obstacle between what the strategy asked for on a side and orders working there.
Definition quote_diag.hpp:25
@ 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
@ Backoff
a venue refusal put the side in its reject backoff
@ QuotingOff
the session does not quote: pulled, killed, reconciling, parameters stale
@ FeedLag
the venue's feed-lag gate holds ([risk] max_feed_lag_ms)
@ Quoting
the working orders cover what the strategy asked for
@ VenueKilled
its venue's kill switch
@ NotWanted
the strategy asks for nothing on this side (its note may say why)
@ Refused
the last order on the side was refused (reason) within the last 2 s
constexpr std::size_t kMaxStrategyMetrics
Definition quote_diag.hpp:19
constexpr std::size_t kQuoteNoteLen
QuoteNote::reason, NUL-terminated.
Definition quote_diag.hpp:18
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:21
constexpr std::string_view to_string(ParamType t) noexcept
Definition params.hpp:63
constexpr std::size_t kStrategyMetricNameLen
Definition quote_diag.hpp:20
A number the strategy publishes by name (ctx.metric): a budget split, a model state.
Definition quote_diag.hpp:107
double value
Definition quote_diag.hpp:109
char name[kStrategyMetricNameLen]
Definition quote_diag.hpp:108
Definition quote_diag.hpp:94
std::uint8_t pad_[3]
Definition quote_diag.hpp:97
std::int64_t unrealized_raw
Definition quote_diag.hpp:101
std::int64_t realized_raw
Definition quote_diag.hpp:100
std::int64_t avg_px_raw
Definition quote_diag.hpp:99
LiveQuoteSide sides[2]
by Side: Buy, Sell
Definition quote_diag.hpp:103
std::int64_t mid_raw
0: no two-sided book
Definition quote_diag.hpp:102
std::uint8_t venue
Definition quote_diag.hpp:96
std::uint32_t instrument
Definition quote_diag.hpp:95
std::int64_t position_raw
Definition quote_diag.hpp:98
One side of an instrument as the engine publishes it (EngineLiveStats::quotes).
Definition quote_diag.hpp:78
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:84
RejectReason reason
block Refused: the refusal; otherwise None
Definition quote_diag.hpp:89
std::uint8_t pad_[3]
Definition quote_diag.hpp:90
std::int64_t working_qty_raw
leaves of every open order on the side
Definition quote_diag.hpp:82
std::int64_t block_since_ns
engine time block began
Definition quote_diag.hpp:85
std::int64_t working_px_raw
best working quote price (0: none)
Definition quote_diag.hpp:81
std::uint8_t desired_levels
Definition quote_diag.hpp:87
QuoteNote note
Definition quote_diag.hpp:91
std::int64_t desired_qty_raw
over every level
Definition quote_diag.hpp:80
std::uint16_t working_orders
Definition quote_diag.hpp:86
QuoteBlock block
Definition quote_diag.hpp:88
std::int64_t desired_px_raw
level 0 of the strategy's last ladder (0: none)
Definition quote_diag.hpp:79
What the strategy says about a side (ctx.note_quote): a short reason ("inventory_cap",...
Definition quote_diag.hpp:66
std::string_view reason_view() const noexcept
Definition quote_diag.hpp:70
char reason[kQuoteNoteLen]
Definition quote_diag.hpp:67
std::int64_t budget_raw
Definition quote_diag.hpp:68
std::int64_t set_ns
engine time of the note
Definition quote_diag.hpp:69