pub enum TradeAction {
Buy,
Sell,
BuyToCover,
SellShort,
BuyToOpen,
BuyToClose,
SellToOpen,
SellToClose,
}Expand description
The different trade actions that can be sent or received, and conveys the intent of the order.
Variants§
Buy
NOTE: Only for Equities and Futures
Sell
NOTE: Only for Equities and Futures
BuyToCover
NOTE: Only for Equities
SellShort
NOTE: Only for Equities
BuyToOpen
NOTE: Only for Options
BuyToClose
NOTE: Only for Options
SellToOpen
NOTE: Only for Options
SellToClose
NOTE: Only for Options
Trait Implementations§
Source§impl Clone for TradeAction
impl Clone for TradeAction
Source§fn clone(&self) -> TradeAction
fn clone(&self) -> TradeAction
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 TradeAction
impl Debug for TradeAction
Source§impl<'de> Deserialize<'de> for TradeAction
impl<'de> Deserialize<'de> for TradeAction
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 TradeAction
impl RefUnwindSafe for TradeAction
impl Send for TradeAction
impl Sync for TradeAction
impl Unpin for TradeAction
impl UnwindSafe for TradeAction
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