10#include <nlohmann/json.hpp>
16using json = nlohmann::json;
128 return "PENDING_CANCEL";
134 return "PENDING_REPLACE";
138 return "TRADE_CORRECT";
140 return "TRADE_CANCEL";
142 return "ORDER_STATUS";
172 return "PARTIALLY_FILLED";
176 return "DONE_FOR_DAY";
182 return "PENDING_CANCEL";
190 return "PENDING_NEW";
196 return "ACCEPTED_FOR_BIDDING";
198 return "PENDING_REPLACE";
218 return "GOOD_TILL_CANCEL";
220 return "AT_THE_OPENING";
222 return "IMMEDIATE_OR_CANCEL";
224 return "FILL_OR_KILL";
226 return "GOOD_TILL_CROSSING";
228 return "GOOD_TILL_DATE";
244 return "cancel_resting";
246 return "cancel_newest";
254 if (name ==
"cancel_resting") {
257 if (name ==
"cancel_newest") {
278 return "UNKNOWN_PRODUCT_TYPE";
295static_assert(std::is_standard_layout_v<OrderIdentity>);
297 "OrderIdentity must stay gap-free: it is copied as one block onto the wire");
A null-terminated character buffer of fixed capacity, stored inline.
uint64_t get_current_time_ns()
constexpr Side opposite_side()
constexpr price_t NULL_PRICE
constexpr double to_price_double(price_t price)
constexpr SelfMatchPreventionMode to_smp_mode(std::string_view name)
Parses the self_match_prevention configuration value.
boost::multiprecision::uint128_t cum_value_t
constexpr const char * to_string(FeedState state) noexcept
constexpr double to_qty_double(qty_t qty)
The four identity fields, stored inline in the order and width used by OrderResponse.
utils::fixed_string< 32 > symbol
utils::fixed_string< 37 > client_order_id
utils::fixed_string< 37 > order_id
utils::fixed_string< 37 > user_id
bool restsRemainder() const noexcept
Whether what matching leaves of it rests on the book; otherwise it is cancelled.
std::string reject_message
std::optional< uint64_t > last_fill_time
TimeInForce time_in_force
double last_fill_qty_double() const noexcept
uint64_t last_update_time
double last_fill_price_double() const noexcept
std::string cancel_message
double avg_fill_price_double() const noexcept
double qty_double() const noexcept
double leaves_qty_double() const noexcept
uint64_t request_tag
Request::request_tag of the last request this order accepted, echoed on its responses.
void resetFillAccounting(qty_t new_qty=0) noexcept
double price_double() const noexcept
double cum_qty_double() const noexcept