#include <fastmm/core/quote_manager.hpp>
|
| void | clear () noexcept |
| |
| VenueId | account (Side s, std::uint32_t lvl) const noexcept |
| |
| void | set_value (Side s, std::uint32_t lvl, float value, float keep=kNoValue) noexcept |
| | Sets the value of level lvl of a side and, optionally, the keep value of its resting order.
|
| |
| float | value (Side s, std::uint32_t lvl) const noexcept |
| |
| float | keep (Side s, std::uint32_t lvl) const noexcept |
| |
| const StaticVector< Level, kMaxQuoteLevels > & | side (Side s) const noexcept |
| |
| bool | empty () const noexcept |
| |
| bool | bid (Price px, Qty qty) noexcept |
| | Append the next level of a side (index 0 first).
|
| |
| bool | ask (Price px, Qty qty) noexcept |
| |
| bool | bid (Price px, Qty qty, float value, float keep=kNoValue) noexcept |
| | ... with the level's value and its resting order's keep value ([capacity]).
|
| |
| bool | ask (Price px, Qty qty, float value, float keep=kNoValue) noexcept |
| |
| void | uncross (Price tick) noexcept |
| | Never cross ourselves at level 0: an ask at or below the best bid moves one tick above it.
|
| |
|
| StaticVector< Level, kMaxQuoteLevels > | bids |
| | index 0 = closest to mid
|
| |
| StaticVector< Level, kMaxQuoteLevels > | asks |
| |
| std::array< VenueId, kMaxQuoteLevels > | bid_account {} |
| | The pool account a level's order goes from (NewOrderRequest::account); invalid = the engine's automatic routing.
|
| |
| std::array< VenueId, kMaxQuoteLevels > | ask_account {} |
| |
| std::array< float, kMaxQuoteLevels > | bid_value = no_values() |
| | What a level's order is worth, in the quote currency ([capacity], core/capacity_price.hpp): value placed at the level's price, keep the order already resting in the slot where it rests.
|
| |
| std::array< float, kMaxQuoteLevels > | ask_value = no_values() |
| |
| std::array< float, kMaxQuoteLevels > | bid_keep = no_values() |
| |
| std::array< float, kMaxQuoteLevels > | ask_keep = no_values() |
| |
◆ clear()
| void fastmm::DesiredQuotes::clear |
( |
| ) |
|
|
inlinenoexcept |
◆ account()
| VenueId fastmm::DesiredQuotes::account |
( |
Side |
s, |
|
|
std::uint32_t |
lvl |
|
) |
| const |
|
inlinenoexcept |
◆ set_value()
| void fastmm::DesiredQuotes::set_value |
( |
Side |
s, |
|
|
std::uint32_t |
lvl, |
|
|
float |
value, |
|
|
float |
keep = kNoValue |
|
) |
| |
|
inlinenoexcept |
Sets the value of level lvl of a side and, optionally, the keep value of its resting order.
◆ value()
| float fastmm::DesiredQuotes::value |
( |
Side |
s, |
|
|
std::uint32_t |
lvl |
|
) |
| const |
|
inlinenoexcept |
◆ keep()
| float fastmm::DesiredQuotes::keep |
( |
Side |
s, |
|
|
std::uint32_t |
lvl |
|
) |
| const |
|
inlinenoexcept |
◆ side()
◆ empty()
| bool fastmm::DesiredQuotes::empty |
( |
| ) |
const |
|
inlinenoexcept |
◆ bid() [1/2]
| bool fastmm::DesiredQuotes::bid |
( |
Price |
px, |
|
|
Qty |
qty |
|
) |
| |
|
inlinenoexcept |
Append the next level of a side (index 0 first).
A non-positive price or quantity is dropped, as is a level beyond kMaxQuoteLevels; returns whether the level was added.
◆ ask() [1/2]
| bool fastmm::DesiredQuotes::ask |
( |
Price |
px, |
|
|
Qty |
qty |
|
) |
| |
|
inlinenoexcept |
◆ bid() [2/2]
| bool fastmm::DesiredQuotes::bid |
( |
Price |
px, |
|
|
Qty |
qty, |
|
|
float |
value, |
|
|
float |
keep = kNoValue |
|
) |
| |
|
inlinenoexcept |
... with the level's value and its resting order's keep value ([capacity]).
◆ ask() [2/2]
| bool fastmm::DesiredQuotes::ask |
( |
Price |
px, |
|
|
Qty |
qty, |
|
|
float |
value, |
|
|
float |
keep = kNoValue |
|
) |
| |
|
inlinenoexcept |
◆ uncross()
| void fastmm::DesiredQuotes::uncross |
( |
Price |
tick | ) |
|
|
inlinenoexcept |
Never cross ourselves at level 0: an ask at or below the best bid moves one tick above it.
◆ bids
◆ asks
◆ bid_account
The pool account a level's order goes from (NewOrderRequest::account); invalid = the engine's automatic routing.
A resting order on another account is cancelled and placed again.
◆ ask_account
◆ bid_value
| std::array<float, kMaxQuoteLevels> fastmm::DesiredQuotes::bid_value = no_values() |
What a level's order is worth, in the quote currency ([capacity], core/capacity_price.hpp): value placed at the level's price, keep the order already resting in the slot where it rests.
kNoValue: not stated ([capacity] value decides).
◆ ask_value
| std::array<float, kMaxQuoteLevels> fastmm::DesiredQuotes::ask_value = no_values() |
◆ bid_keep
| std::array<float, kMaxQuoteLevels> fastmm::DesiredQuotes::bid_keep = no_values() |
◆ ask_keep
| std::array<float, kMaxQuoteLevels> fastmm::DesiredQuotes::ask_keep = no_values() |