pub struct OptionOrder {Show 15 fields
pub id: Option<String>,
pub chain_id: Option<String>,
pub chain_symbol: Option<String>,
pub direction: Option<String>,
pub legs: Option<Vec<Value>>,
pub premium: Option<String>,
pub price: Option<String>,
pub processed_premium: Option<String>,
pub quantity: Option<String>,
pub state: Option<String>,
pub time_in_force: Option<String>,
pub order_type: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub cancel_url: Option<String>,
}Expand description
Represents an option order response from the Robinhood API.
Fields§
§id: Option<String>Unique identifier for the order.
chain_id: Option<String>Identifier for the option chain.
chain_symbol: Option<String>Ticker symbol of the underlying stock.
direction: Option<String>Direction of the order (e.g., “debit”, “credit”).
legs: Option<Vec<Value>>Individual legs of the option order.
Estimated premium for the order.
price: Option<String>Limit price per contract.
Actual premium processed upon execution.
quantity: Option<String>Number of contracts in the order.
state: Option<String>Current state of the order (e.g., “queued”, “filled”, “cancelled”).
time_in_force: Option<String>Time-in-force policy for the order.
order_type: Option<String>Type of order (“market” or “limit”).
created_at: Option<String>Timestamp when the order was created.
updated_at: Option<String>Timestamp when the order was last updated.
cancel_url: Option<String>API URL to cancel this order, if cancellation is available.
Trait Implementations§
Source§impl Clone for OptionOrder
impl Clone for OptionOrder
Source§fn clone(&self) -> OptionOrder
fn clone(&self) -> OptionOrder
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 moreSource§impl Debug for OptionOrder
impl Debug for OptionOrder
Source§impl<'de> Deserialize<'de> for OptionOrder
impl<'de> Deserialize<'de> for OptionOrder
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 OptionOrder
impl RefUnwindSafe for OptionOrder
impl Send for OptionOrder
impl Sync for OptionOrder
impl Unpin for OptionOrder
impl UnsafeUnpin for OptionOrder
impl UnwindSafe for OptionOrder
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