pub struct Order {Show 29 fields
pub order_id: String,
pub market: String,
pub client_order_id: Option<String>,
pub created: Option<u64>,
pub updated: Option<u64>,
pub status: String,
pub side: Side,
pub order_type: OrderType,
pub amount: Option<String>,
pub amount_remaining: Option<String>,
pub amount_quote: Option<String>,
pub amount_quote_remaining: Option<String>,
pub price: Option<String>,
pub on_hold: Option<String>,
pub on_hold_currency: Option<String>,
pub filled_amount: Option<String>,
pub filled_amount_quote: Option<String>,
pub fee_paid: Option<String>,
pub fee_currency: Option<String>,
pub fills: Vec<OrderFill>,
pub trigger_price: Option<String>,
pub trigger_amount: Option<String>,
pub trigger_type: Option<String>,
pub trigger_reference: Option<String>,
pub time_in_force: Option<String>,
pub post_only: Option<bool>,
pub self_trade_prevention: Option<String>,
pub visible: Option<bool>,
pub disable_market_protection: Option<bool>,
}Expand description
An order as returned by the trading endpoints.
Fields§
§order_id: String§market: String§client_order_id: Option<String>§created: Option<u64>§updated: Option<u64>§status: String§side: Side§order_type: OrderType§amount: Option<String>§amount_remaining: Option<String>§amount_quote: Option<String>§amount_quote_remaining: Option<String>§price: Option<String>§on_hold: Option<String>§on_hold_currency: Option<String>§filled_amount: Option<String>§filled_amount_quote: Option<String>§fee_paid: Option<String>§fee_currency: Option<String>§fills: Vec<OrderFill>§trigger_price: Option<String>§trigger_amount: Option<String>§trigger_type: Option<String>§trigger_reference: Option<String>§time_in_force: Option<String>§post_only: Option<bool>§self_trade_prevention: Option<String>§visible: Option<bool>§disable_market_protection: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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