|
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
|
#include <fastmm/core/quote_manager.hpp>
Public Attributes | |
| std::int64_t | min_requote_ticks = 1 |
| |desired - resting| < this -> keep | |
| Duration | min_requote_interval = milliseconds(50) |
| std::int64_t | min_qty_bps = 8000 |
| leaves >= 80 % of desired -> qty ok | |
| bool | supports_replace = false |
| off: never replace; on: where the instrument's venue can | |
| bool | replace_all_venues = false |
| Replace only if every instrument's venue can (the engine before replace was per venue; set to replay journals recorded then). | |
| bool | post_only = true |
| Duration | reject_backoff = milliseconds(1000) |
| 0 = no backoff after venue rejects | |
| Duration | reject_backoff_max = milliseconds(60000) |
| std::int64_t | token_reserve = 0 |
| Order tokens ([risk] orders_per_sec) a quote that does not reduce the position leaves for the orders a strategy sends itself (hedges, unwinds) and for quotes that do. | |
| std::int64_t | send_reserve = 0 |
| Order tokens every quote leaves for the orders a strategy sends itself (ctx.send, a hedge or an unwind), on top of token_reserve for the quotes that add risk. | |
| std::int64_t | room_reserve = 0 |
| Orders an account's venue order windows (ctx.order_budget) keep for News into empty levels and for moves away from the touch: with no more than this many left, a resting quote is not moved towards the touch (held, QuoteStats::kept_room). | |
| std::int64_t fastmm::QuoteParams::min_requote_ticks = 1 |
|desired - resting| < this -> keep
| Duration fastmm::QuoteParams::min_requote_interval = milliseconds(50) |
| std::int64_t fastmm::QuoteParams::min_qty_bps = 8000 |
leaves >= 80 % of desired -> qty ok
| bool fastmm::QuoteParams::supports_replace = false |
off: never replace; on: where the instrument's venue can
| bool fastmm::QuoteParams::replace_all_venues = false |
Replace only if every instrument's venue can (the engine before replace was per venue; set to replay journals recorded then).
| bool fastmm::QuoteParams::post_only = true |
| Duration fastmm::QuoteParams::reject_backoff = milliseconds(1000) |
0 = no backoff after venue rejects
| Duration fastmm::QuoteParams::reject_backoff_max = milliseconds(60000) |
| std::int64_t fastmm::QuoteParams::token_reserve = 0 |
Order tokens ([risk] orders_per_sec) a quote that does not reduce the position leaves for the orders a strategy sends itself (hedges, unwinds) and for quotes that do.
Read by the engine's placer; 0 = quotes may take the last token.
| std::int64_t fastmm::QuoteParams::send_reserve = 0 |
Order tokens every quote leaves for the orders a strategy sends itself (ctx.send, a hedge or an unwind), on top of token_reserve for the quotes that add risk.
A quote short of a token waits for one; a sent order short of one is refused RateLimit, and the waiting quotes take each token as it comes back, so without this a sent order can find none for as long as quotes wait. 0 = quotes may take the last token.
| std::int64_t fastmm::QuoteParams::room_reserve = 0 |
Orders an account's venue order windows (ctx.order_budget) keep for News into empty levels and for moves away from the touch: with no more than this many left, a resting quote is not moved towards the touch (held, QuoteStats::kept_room).
Read by the engine's placer; 0 = only when none is left; -1 = never held.