|
uint64_t | HiddenQuantity () const noexcept |
| Order hidden quantity. More...
|
|
uint64_t | VisibleQuantity () const noexcept |
| Order visible quantity. More...
|
|
| Order () noexcept=default |
|
| Order (uint64_t id, uint32_t symbol, OrderType type, OrderSide side, uint64_t price, uint64_t stop_price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max(), uint64_t slippage=std::numeric_limits< uint64_t >::max(), int64_t trailing_distance=0, int64_t trailing_step=0) noexcept |
|
| Order (const Order &) noexcept=default |
|
| Order (Order &&) noexcept=default |
|
| ~Order () noexcept=default |
|
Order & | operator= (const Order &) noexcept=default |
|
Order & | operator= (Order &&) noexcept=default |
|
bool | IsMarket () const noexcept |
| Is the market order? More...
|
|
bool | IsLimit () const noexcept |
| Is the limit order? More...
|
|
bool | IsStop () const noexcept |
| Is the stop order? More...
|
|
bool | IsStopLimit () const noexcept |
| Is the stop-limit order? More...
|
|
bool | IsTrailingStop () const noexcept |
| Is the trailing stop order? More...
|
|
bool | IsTrailingStopLimit () const noexcept |
| Is the trailing stop-limit order? More...
|
|
bool | IsBuy () const noexcept |
| Is the order with buy side? More...
|
|
bool | IsSell () const noexcept |
| Is the order with sell side? More...
|
|
bool | IsGTC () const noexcept |
| Is the 'Good-Till-Cancelled' order? More...
|
|
bool | IsIOC () const noexcept |
| Is the 'Immediate-Or-Cancel' order? More...
|
|
bool | IsFOK () const noexcept |
| Is the 'Fill-Or-Kill' order? More...
|
|
bool | IsAON () const noexcept |
| Is the 'All-Or-None' order? More...
|
|
bool | IsHidden () const noexcept |
| Is the 'Hidden' order? More...
|
|
bool | IsIceberg () const noexcept |
| Is the 'Iceberg' order? More...
|
|
bool | IsSlippage () const noexcept |
| Is the order have slippage? More...
|
|
ErrorCode | Validate () const noexcept |
| Validate order parameters. More...
|
|
|
static Order | Market (uint64_t id, uint32_t symbol, OrderSide side, uint64_t quantity, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new market order. More...
|
|
static Order | BuyMarket (uint64_t id, uint32_t symbol, uint64_t quantity, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new buy market order. More...
|
|
static Order | SellMarket (uint64_t id, uint32_t symbol, uint64_t quantity, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new sell market order. More...
|
|
static Order | Limit (uint64_t id, uint32_t symbol, OrderSide side, uint64_t price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new limit order. More...
|
|
static Order | BuyLimit (uint64_t id, uint32_t symbol, uint64_t price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new buy limit order. More...
|
|
static Order | SellLimit (uint64_t id, uint32_t symbol, uint64_t price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new sell limit order. More...
|
|
static Order | Stop (uint64_t id, uint32_t symbol, OrderSide side, uint64_t stop_price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new stop order. More...
|
|
static Order | BuyStop (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new buy stop order. More...
|
|
static Order | SellStop (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new sell stop order. More...
|
|
static Order | StopLimit (uint64_t id, uint32_t symbol, OrderSide side, uint64_t stop_price, uint64_t price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new stop-limit order. More...
|
|
static Order | BuyStopLimit (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new buy stop-limit order. More...
|
|
static Order | SellStopLimit (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t price, uint64_t quantity, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new sell stop-limit order. More...
|
|
static Order | TrailingStop (uint64_t id, uint32_t symbol, OrderSide side, uint64_t stop_price, uint64_t quantity, int64_t trailing_distance, int64_t trailing_step=0, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new trailing stop order. More...
|
|
static Order | TrailingBuyStop (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t quantity, int64_t trailing_distance, int64_t trailing_step=0, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new trailing buy stop order. More...
|
|
static Order | TrailingSellStop (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t quantity, int64_t trailing_distance, int64_t trailing_step=0, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t slippage=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new trailing sell stop order. More...
|
|
static Order | TrailingStopLimit (uint64_t id, uint32_t symbol, OrderSide side, uint64_t stop_price, uint64_t price, uint64_t quantity, int64_t trailing_distance, int64_t trailing_step=0, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new trailing stop-limit order. More...
|
|
static Order | TrailingBuyStopLimit (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t price, uint64_t quantity, int64_t trailing_distance, int64_t trailing_step=0, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new trailing buy stop-limit order. More...
|
|
static Order | TrailingSellStopLimit (uint64_t id, uint32_t symbol, uint64_t stop_price, uint64_t price, uint64_t quantity, int64_t trailing_distance, int64_t trailing_step=0, OrderTimeInForce tif=OrderTimeInForce::GTC, uint64_t max_visible_quantity=std::numeric_limits< uint64_t >::max()) noexcept |
| Prepare a new trailing sell stop-limit order. More...
|
|
Order.
An order is an instruction to buy or sell on a trading venue such as a stock market, bond market, commodity market, or financial derivative market. These instructions can be simple or complicated, and can be sent to either a broker or directly to a trading venue via direct market access.
Definition at line 127 of file order.h.