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

#include <fastmm/core/quote_manager.hpp>

Public Attributes

QuoteActionKind kind
 
InstrumentId instrument
 
Side side
 
std::uint32_t level
 
Handle< Order > handle
 Cancel/Replace input; New output.
 
ClientOrderId cl_ord_id
 New output (the placer fills it)
 
Price price
 
Qty qty
 
bool post_only
 
bool deferred
 New: the target was recorded while an earlier order held the slot and is placed now that it ended (on_order_update), so it was decided against a balance that order may have changed.
 
bool withheld
 New output: not sent, the balance does not cover it (deferred only)
 
bool rate_limited
 New / Replace output: not sent, no order token for it now (QuoteParams::token_reserve, send_reserve); the instrument is retried when tokens come back.
 
VenueId account {}
 New: the pool account to send it from (invalid = automatic)
 
RejectReason refused {}
 New / Replace output: the pre-trade check that refused it (None: sent, or not refused by one).
 
bool held = false
 Cancel / Replace output: not sent, the move goes towards the touch and the order's account is short of order room (QuoteParams::room_reserve); the order stays as it is.
 
float value = kNoValue
 New / Replace / a Cancel that moves: the level's value and the resting order's keep value (DesiredQuotes::value, keep; kNoValue: not stated).
 
float keep = kNoValue
 
bool priced_out = false
 Output: not sent, the action is worth less than the order slot it takes ([capacity]).
 
bool paid = false
 A Cancel that moves, output: the move was bought, so the New after it is not priced again.
 

Member Data Documentation

◆ kind

QuoteActionKind fastmm::QuoteAction::kind

◆ instrument

InstrumentId fastmm::QuoteAction::instrument

◆ side

Side fastmm::QuoteAction::side

◆ level

std::uint32_t fastmm::QuoteAction::level

◆ handle

Handle<Order> fastmm::QuoteAction::handle

Cancel/Replace input; New output.

◆ cl_ord_id

ClientOrderId fastmm::QuoteAction::cl_ord_id

New output (the placer fills it)

◆ price

Price fastmm::QuoteAction::price

◆ qty

Qty fastmm::QuoteAction::qty

◆ post_only

bool fastmm::QuoteAction::post_only

◆ deferred

bool fastmm::QuoteAction::deferred

New: the target was recorded while an earlier order held the slot and is placed now that it ended (on_order_update), so it was decided against a balance that order may have changed.

◆ withheld

bool fastmm::QuoteAction::withheld

New output: not sent, the balance does not cover it (deferred only)

◆ rate_limited

bool fastmm::QuoteAction::rate_limited

New / Replace output: not sent, no order token for it now (QuoteParams::token_reserve, send_reserve); the instrument is retried when tokens come back.

◆ account

VenueId fastmm::QuoteAction::account {}

New: the pool account to send it from (invalid = automatic)

◆ refused

RejectReason fastmm::QuoteAction::refused {}

New / Replace output: the pre-trade check that refused it (None: sent, or not refused by one).

◆ held

bool fastmm::QuoteAction::held = false

Cancel / Replace output: not sent, the move goes towards the touch and the order's account is short of order room (QuoteParams::room_reserve); the order stays as it is.

A Cancel that moves a quote carries the target in price and qty; a pull carries none and is never held.

◆ value

float fastmm::QuoteAction::value = kNoValue

New / Replace / a Cancel that moves: the level's value and the resting order's keep value (DesiredQuotes::value, keep; kNoValue: not stated).

◆ keep

float fastmm::QuoteAction::keep = kNoValue

◆ priced_out

bool fastmm::QuoteAction::priced_out = false

Output: not sent, the action is worth less than the order slot it takes ([capacity]).

◆ paid

bool fastmm::QuoteAction::paid = false

A Cancel that moves, output: the move was bought, so the New after it is not priced again.

A deferred New, input: the move that freed its slot was bought.