pub struct OrderInfoResponse {Show 26 fields
pub amount: f64,
pub api: bool,
pub average_price: Option<f64>,
pub creation_timestamp: u64,
pub direction: String,
pub filled_amount: Option<f64>,
pub instrument_name: String,
pub is_liquidation: bool,
pub label: String,
pub last_update_timestamp: u64,
pub max_show: Option<f64>,
pub order_id: String,
pub order_state: String,
pub order_type: String,
pub original_order_type: Option<String>,
pub post_only: bool,
pub price: f64,
pub profit_loss: Option<f64>,
pub reduce_only: bool,
pub replaced: bool,
pub risk_reducing: bool,
pub time_in_force: String,
pub triggered: Option<bool>,
pub trigger: Option<String>,
pub usd: Option<f64>,
pub web: bool,
}Expand description
Order information
Fields§
§amount: f64Order amount
api: boolWhether order was placed via API
average_price: Option<f64>Average execution price
creation_timestamp: u64Order creation timestamp
direction: StringOrder direction (buy/sell)
filled_amount: Option<f64>Amount that has been filled
instrument_name: StringInstrument name
is_liquidation: boolWhether this is a liquidation order
label: StringOrder label
last_update_timestamp: u64Last update timestamp
max_show: Option<f64>Maximum amount to show in order book (optional)
order_id: StringUnique order identifier
order_state: StringCurrent order state
order_type: StringType of order
original_order_type: Option<String>Original order type before any modifications
post_only: boolWhether this is a post-only order
price: f64Order price
profit_loss: Option<f64>Current profit/loss on the order
reduce_only: boolWhether this order only reduces position
replaced: boolWhether this order has been replaced
risk_reducing: boolWhether this order reduces risk
time_in_force: StringTime in force specification
triggered: Option<bool>Whether the order has been triggered
trigger: Option<String>Trigger condition for the order
usd: Option<f64>USD value of the order
web: boolWhether order was placed via web interface
Trait Implementations§
Source§impl Clone for OrderInfoResponse
impl Clone for OrderInfoResponse
Source§fn clone(&self) -> OrderInfoResponse
fn clone(&self) -> OrderInfoResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrderInfoResponse
impl Debug for OrderInfoResponse
Source§impl<'de> Deserialize<'de> for OrderInfoResponse
impl<'de> Deserialize<'de> for OrderInfoResponse
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>,
Source§impl Display for OrderInfoResponse
impl Display for OrderInfoResponse
Auto Trait Implementations§
impl Freeze for OrderInfoResponse
impl RefUnwindSafe for OrderInfoResponse
impl Send for OrderInfoResponse
impl Sync for OrderInfoResponse
impl Unpin for OrderInfoResponse
impl UnwindSafe for OrderInfoResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.