pub struct OptionOrderRequest {
pub symbol: String,
pub expiration_date: String,
pub strike_price: f64,
pub option_type: String,
pub side: Side,
pub quantity: f64,
pub limit_price: f64,
pub position_effect: OptionPositionEffect,
pub time_in_force: TimeInForce,
}Expand description
Represents a request to place an option order.
Fields§
§symbol: StringTicker symbol of the underlying stock.
expiration_date: StringExpiration date of the option contract (YYYY-MM-DD).
strike_price: f64Strike price of the option contract.
option_type: StringType of option contract (“call” or “put”).
side: SideSide of the trade (buy or sell).
quantity: f64Number of contracts to trade.
limit_price: f64Limit price per contract.
position_effect: OptionPositionEffectWhether this order opens a new position or closes an existing one.
time_in_force: TimeInForceDuration policy for the order.
Trait Implementations§
Source§impl Clone for OptionOrderRequest
impl Clone for OptionOrderRequest
Source§fn clone(&self) -> OptionOrderRequest
fn clone(&self) -> OptionOrderRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OptionOrderRequest
impl RefUnwindSafe for OptionOrderRequest
impl Send for OptionOrderRequest
impl Sync for OptionOrderRequest
impl Unpin for OptionOrderRequest
impl UnsafeUnpin for OptionOrderRequest
impl UnwindSafe for OptionOrderRequest
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