pub struct GTTOrderParams {
pub exchange: Exchange,
pub trading_symbol: String,
pub transaction_type: TransactionType,
pub order_type: OrderType,
pub product: Product,
pub quantity: u32,
pub price: f64,
pub result: Option<GTTOrderResult>,
}Expand description
GTT order parameters for execution when triggered
Fields§
§exchange: ExchangeExchange
trading_symbol: StringTrading symbol
transaction_type: TransactionTypeTransaction type
order_type: OrderTypeOrder type
product: ProductProduct type
quantity: u32Quantity
price: f64Price (for limit orders)
result: Option<GTTOrderResult>Result (order ID when triggered, if successful)
Trait Implementations§
Source§impl Clone for GTTOrderParams
impl Clone for GTTOrderParams
Source§fn clone(&self) -> GTTOrderParams
fn clone(&self) -> GTTOrderParams
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 GTTOrderParams
impl Debug for GTTOrderParams
Source§impl<'de> Deserialize<'de> for GTTOrderParams
impl<'de> Deserialize<'de> for GTTOrderParams
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 GTTOrderParams
impl RefUnwindSafe for GTTOrderParams
impl Send for GTTOrderParams
impl Sync for GTTOrderParams
impl Unpin for GTTOrderParams
impl UnwindSafe for GTTOrderParams
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