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: String
Account ID
order_id: String
Order ID
exchange_order_id: Option<String>
Exchange order ID
parent_order_id: Option<String>
Parent order ID
status: OrderStatus
Order 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: String
Trading symbol
exchange: Exchange
Exchange
instrument_token: u32
Instrument token
order_type: OrderType
Order type
transaction_type: TransactionType
Transaction type
validity: Validity
Validity
product: Product
Product
quantity: u32
Quantity
disclosed_quantity: u32
Disclosed quantity
price: f64
Price
trigger_price: f64
Trigger price
average_price: f64
Average price
filled_quantity: u32
Filled quantity
pending_quantity: u32
Pending quantity
cancelled_quantity: u32
Cancelled quantity
market_protection: f64
Market protection
tag: Option<String>
Tag
guid: String
GUID
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