pub struct USStockEntry {Show 23 fields
pub symbol: String,
pub full_symbol: String,
pub asset_type: String,
pub quantity: String,
pub currency: String,
pub average_cost: String,
pub market: String,
pub trade_status: String,
pub prev_close: String,
pub last_done: String,
pub market_price: String,
pub pretrade_close: String,
pub stock_invest_of_today: String,
pub today_pl: String,
pub pretrade_stock_invest_of_today: String,
pub pretrade_today_pl: String,
pub night_last_done: String,
pub night_prev_close: String,
pub position_side: String,
pub open_position_time: String,
pub name: String,
pub industry_counter_id: String,
pub industry_name: String,
}Expand description
One stock/equity position in USAssetOverview.
Fields§
§symbol: StringTicker code returned by the API (e.g. "AAPL"). See full_symbol for
the qualified form.
full_symbol: StringQualified user-facing symbol (e.g. "AAPL.US")
asset_type: StringAsset type
quantity: StringHolding quantity
currency: StringCurrency
average_cost: StringAverage cost price
market: StringMarket code
trade_status: StringTrade status
prev_close: StringPrevious close price
last_done: StringLatest price
market_price: StringMarket price
pretrade_close: StringPre-market close price
stock_invest_of_today: StringToday’s stock investment value
today_pl: StringToday’s profit/loss
pretrade_stock_invest_of_today: StringToday’s stock investment value (pre-market)
pretrade_today_pl: StringToday’s profit/loss (pre-market)
night_last_done: StringOvernight-session latest price
night_prev_close: StringOvernight-session previous close
position_side: StringPosition side (long/short)
open_position_time: StringPosition open time (Unix-second string)
name: StringSecurity name
industry_counter_id: StringIndustry classification ID
industry_name: StringIndustry name
Trait Implementations§
Source§impl Clone for USStockEntry
impl Clone for USStockEntry
Source§fn clone(&self) -> USStockEntry
fn clone(&self) -> USStockEntry
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 USStockEntry
impl Debug for USStockEntry
Source§impl Default for USStockEntry
impl Default for USStockEntry
Source§fn default() -> USStockEntry
fn default() -> USStockEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for USStockEntry
impl<'de> Deserialize<'de> for USStockEntry
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 USStockEntry
impl RefUnwindSafe for USStockEntry
impl Send for USStockEntry
impl Sync for USStockEntry
impl Unpin for USStockEntry
impl UnsafeUnpin for USStockEntry
impl UnwindSafe for USStockEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more