#[non_exhaustive]pub struct OrderRequest {
pub key: MarketKey,
pub side: Side,
pub price: Decimal,
pub size: Decimal,
pub time_in_force: TimeInForce,
pub client_order_id: Option<ClientOrderId>,
pub post_only: bool,
pub reduce_only: bool,
pub extensions: Extensions,
}Expand description
An order to place.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: MarketKeyThe instrument, or the outcome of an event, to trade.
side: SideBuy or sell.
price: DecimalThe limit price.
size: DecimalThe size, in the instrument’s native quantity.
time_in_force: TimeInForceHow long it rests.
client_order_id: Option<ClientOrderId>The caller’s id for it. The venue echoes it, or the implementation keeps it for the orders it placed, as its documentation says; a venue that can do neither refuses a request that carries one.
post_only: boolRest only: refuse to take liquidity.
reduce_only: boolOnly reduce a position, never open or grow one.
extensions: ExtensionsThe venue’s own options; one it does not declare is refused.
Implementations§
Trait Implementations§
Source§impl Clone for OrderRequest
impl Clone for OrderRequest
Source§impl Debug for OrderRequest
impl Debug for OrderRequest
Source§impl PartialEq for OrderRequest
impl PartialEq for OrderRequest
impl StructuralPartialEq for OrderRequest
Auto Trait Implementations§
impl !RefUnwindSafe for OrderRequest
impl !UnwindSafe for OrderRequest
impl Freeze for OrderRequest
impl Send for OrderRequest
impl Sync for OrderRequest
impl Unpin for OrderRequest
impl UnsafeUnpin for OrderRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more