pub struct OKXAccount {Show 16 fields
pub adj_eq: String,
pub borrow_froz: String,
pub details: Vec<OKXBalanceDetail>,
pub imr: String,
pub iso_eq: String,
pub mgn_ratio: String,
pub mmr: String,
pub notional_usd_for_borrow: String,
pub notional_usd_for_futures: String,
pub notional_usd_for_option: String,
pub notional_usd_for_swap: String,
pub notional_usd: String,
pub ord_froz: String,
pub total_eq: String,
pub u_time: u64,
pub upl: String,
}Expand description
Represents an account balance snapshot from GET /api/v5/account/balance.
Fields§
§adj_eq: StringAdjusted/Effective equity in USD.
borrow_froz: StringBorrow frozen amount.
details: Vec<OKXBalanceDetail>Account details by currency.
imr: StringInitial margin requirement.
iso_eq: StringIsolated margin equity.
mgn_ratio: StringMargin ratio.
mmr: StringMaintenance margin requirement.
notional_usd_for_borrow: StringNotional value in USD for borrow.
notional_usd_for_futures: StringNotional value in USD for futures.
notional_usd_for_option: StringNotional value in USD for option.
notional_usd_for_swap: StringNotional value in USD for swap.
notional_usd: StringNotional value in USD.
ord_froz: StringOrder frozen.
total_eq: StringTotal equity in USD.
u_time: u64Last update time, Unix timestamp in milliseconds.
upl: StringUnrealized profit and loss.
Trait Implementations§
Source§impl Clone for OKXAccount
impl Clone for OKXAccount
Source§fn clone(&self) -> OKXAccount
fn clone(&self) -> OKXAccount
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 OKXAccount
impl Debug for OKXAccount
Source§impl<'de> Deserialize<'de> for OKXAccount
impl<'de> Deserialize<'de> for OKXAccount
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 OKXAccount
impl RefUnwindSafe for OKXAccount
impl Send for OKXAccount
impl Sync for OKXAccount
impl Unpin for OKXAccount
impl UnwindSafe for OKXAccount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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