pub struct ShortPosition {
pub symbol: String,
pub qty: String,
pub avg_entry_price: String,
pub market_value: String,
pub cost_basis: String,
pub unrealized_pl: String,
pub unrealized_plpc: String,
pub current_price: String,
}Expand description
Short position information.
Fields§
§symbol: StringSymbol.
qty: StringQuantity (negative for short).
avg_entry_price: StringAverage entry price.
market_value: StringCurrent market value.
cost_basis: StringCost basis.
unrealized_pl: StringUnrealized P&L.
unrealized_plpc: StringUnrealized P&L percentage.
current_price: StringCurrent price.
Trait Implementations§
Source§impl Clone for ShortPosition
impl Clone for ShortPosition
Source§fn clone(&self) -> ShortPosition
fn clone(&self) -> ShortPosition
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 ShortPosition
impl Debug for ShortPosition
Source§impl<'de> Deserialize<'de> for ShortPosition
impl<'de> Deserialize<'de> for ShortPosition
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortPosition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortPosition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ShortPosition
impl Serialize for ShortPosition
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ShortPosition
impl RefUnwindSafe for ShortPosition
impl Send for ShortPosition
impl Sync for ShortPosition
impl Unpin for ShortPosition
impl UnwindSafe for ShortPosition
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