pub struct OrderHistoryEntry {Show 29 fields
pub account_id: String,
pub order_id: String,
pub exchange_order_id: Option<String>,
pub parent_order_id: Option<String>,
pub status: OrderStatus,
pub status_message: Option<String>,
pub status_message_raw: Option<String>,
pub order_timestamp: DateTime<Utc>,
pub exchange_timestamp: Option<DateTime<Utc>>,
pub exchange_update_timestamp: Option<DateTime<Utc>>,
pub trading_symbol: String,
pub exchange: Exchange,
pub instrument_token: u32,
pub order_type: OrderType,
pub transaction_type: TransactionType,
pub validity: Validity,
pub product: Product,
pub quantity: u32,
pub disclosed_quantity: u32,
pub price: f64,
pub trigger_price: f64,
pub average_price: f64,
pub filled_quantity: u32,
pub pending_quantity: u32,
pub cancelled_quantity: u32,
pub market_protection: f64,
pub tag: Option<String>,
pub guid: String,
pub variety: Option<String>,
}Expand description
Order history entry
Fields§
§account_id: StringAccount ID
order_id: StringOrder ID
exchange_order_id: Option<String>Exchange order ID
parent_order_id: Option<String>Parent order ID
status: OrderStatusOrder status
status_message: Option<String>Status message
status_message_raw: Option<String>Raw status message from exchange
order_timestamp: DateTime<Utc>Order timestamp
exchange_timestamp: Option<DateTime<Utc>>Exchange timestamp
exchange_update_timestamp: Option<DateTime<Utc>>Exchange update timestamp
trading_symbol: StringTrading symbol
exchange: ExchangeExchange
instrument_token: u32Instrument token
order_type: OrderTypeOrder type
transaction_type: TransactionTypeTransaction type
validity: ValidityValidity
product: ProductProduct
quantity: u32Quantity
disclosed_quantity: u32Disclosed quantity
price: f64Price
trigger_price: f64Trigger price
average_price: f64Average price
filled_quantity: u32Filled quantity
pending_quantity: u32Pending quantity
cancelled_quantity: u32Cancelled quantity
market_protection: f64Market protection
tag: Option<String>Tag
guid: StringGUID
variety: Option<String>Variety (regular, bo, co, amo)
Trait Implementations§
Source§impl Clone for OrderHistoryEntry
impl Clone for OrderHistoryEntry
Source§fn clone(&self) -> OrderHistoryEntry
fn clone(&self) -> OrderHistoryEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderHistoryEntry
impl Debug for OrderHistoryEntry
Source§impl<'de> Deserialize<'de> for OrderHistoryEntry
impl<'de> Deserialize<'de> for OrderHistoryEntry
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 OrderHistoryEntry
impl RefUnwindSafe for OrderHistoryEntry
impl Send for OrderHistoryEntry
impl Sync for OrderHistoryEntry
impl Unpin for OrderHistoryEntry
impl UnwindSafe for OrderHistoryEntry
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