pub struct StreamPosition {
pub account_id: Option<String>,
pub symbol: Option<String>,
pub quantity: Option<String>,
pub average_price: Option<String>,
pub last: Option<String>,
pub unrealized_profit_loss: Option<String>,
pub status: Option<String>,
}Expand description
A streaming position update.
Delivered via Client::stream_positions.
Fields§
§account_id: Option<String>Account holding this position.
symbol: Option<String>Ticker symbol.
quantity: Option<String>Current position quantity.
average_price: Option<String>Average entry price.
last: Option<String>Last traded price.
unrealized_profit_loss: Option<String>Unrealized P&L.
status: Option<String>Stream status (present only for status messages).
Implementations§
Trait Implementations§
Source§impl Clone for StreamPosition
impl Clone for StreamPosition
Source§fn clone(&self) -> StreamPosition
fn clone(&self) -> StreamPosition
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 StreamPosition
impl Debug for StreamPosition
Source§impl<'de> Deserialize<'de> for StreamPosition
impl<'de> Deserialize<'de> for StreamPosition
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 StreamPosition
impl RefUnwindSafe for StreamPosition
impl Send for StreamPosition
impl Sync for StreamPosition
impl Unpin for StreamPosition
impl UnsafeUnpin for StreamPosition
impl UnwindSafe for StreamPosition
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