pub struct USCryptoEntry {Show 22 fields
pub asset_type: String,
pub symbol: 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 cryptocurrency holding in USAssetOverview.
Fields§
§asset_type: StringAsset type (e.g. "CRYPTO")
symbol: StringTrading-pair code (e.g. "BTCUSD"); the user-facing symbol is
"<symbol>.<market>" (e.g. "BTCUSD.BKKT")
quantity: StringHolding quantity
currency: StringSettlement currency
average_cost: StringAverage cost price; empty when the server has none
market: StringMarket code (e.g. "BKKT")
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 investment value
today_pl: StringToday’s profit/loss
pretrade_stock_invest_of_today: StringToday’s 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; "0" when unknown)
name: StringAsset name (e.g. "Bitcoin")
industry_counter_id: StringIndustry classification ID
industry_name: StringIndustry name
Trait Implementations§
Source§impl Clone for USCryptoEntry
impl Clone for USCryptoEntry
Source§fn clone(&self) -> USCryptoEntry
fn clone(&self) -> USCryptoEntry
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 USCryptoEntry
impl Debug for USCryptoEntry
Source§impl Default for USCryptoEntry
impl Default for USCryptoEntry
Source§fn default() -> USCryptoEntry
fn default() -> USCryptoEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for USCryptoEntry
impl<'de> Deserialize<'de> for USCryptoEntry
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 USCryptoEntry
impl RefUnwindSafe for USCryptoEntry
impl Send for USCryptoEntry
impl Sync for USCryptoEntry
impl Unpin for USCryptoEntry
impl UnsafeUnpin for USCryptoEntry
impl UnwindSafe for USCryptoEntry
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> ⓘ
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