pub struct OptionPosition {
pub account: Option<String>,
pub average_price: Option<String>,
pub chain_id: Option<String>,
pub chain_symbol: Option<String>,
pub id: Option<String>,
pub option: Option<String>,
pub quantity: Option<String>,
pub position_type: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
Represents an option position held in a Robinhood account.
Fields§
§account: Option<String>API URL for the account holding this position.
average_price: Option<String>Average price paid per contract.
chain_id: Option<String>Identifier for the parent option chain.
chain_symbol: Option<String>Ticker symbol of the underlying stock.
id: Option<String>Unique identifier for this option position.
option: Option<String>API URL for the associated option instrument.
quantity: Option<String>Number of contracts held.
position_type: Option<String>Position type (e.g., “long”, “short”).
created_at: Option<String>Timestamp when the position was created.
updated_at: Option<String>Timestamp when the position was last updated.
Trait Implementations§
Source§impl Clone for OptionPosition
impl Clone for OptionPosition
Source§fn clone(&self) -> OptionPosition
fn clone(&self) -> OptionPosition
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 OptionPosition
impl Debug for OptionPosition
Source§impl<'de> Deserialize<'de> for OptionPosition
impl<'de> Deserialize<'de> for OptionPosition
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 OptionPosition
impl RefUnwindSafe for OptionPosition
impl Send for OptionPosition
impl Sync for OptionPosition
impl Unpin for OptionPosition
impl UnsafeUnpin for OptionPosition
impl UnwindSafe for OptionPosition
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