WalletCoin

Struct WalletCoin 

Source
pub struct WalletCoin<'a> {
Show 13 fields pub coin: &'a str, pub equity: &'a str, pub usd_value: &'a str, pub wallet_balance: &'a str, pub borrow_amount: &'a str, pub available_to_borrow: &'a str, pub available_to_withdraw: &'a str, pub accrued_interest: &'a str, pub total_order_im: &'a str, pub total_position_im: &'a str, pub total_position_mm: &'a str, pub unrealised_pnl: &'a str, pub cum_realised_pnl: &'a str,
}
Expand description

The wallet coin data.

Fields§

§coin: &'a str

Coin name, such as BTC, ETH, USDT, USDC.

§equity: &'a str

Equity of current coin.

§usd_value: &'a str

USD value of current coin. If this coin cannot be collateral, then it is 0.

§wallet_balance: &'a str

Wallet balance of current coin.

§borrow_amount: &'a str

Borrow amount of current coin.

§available_to_borrow: &'a str

Available amount to borrow of current coin.

§available_to_withdraw: &'a str

Available amount to withdraw of current coin.

§accrued_interest: &'a str

Accrued interest.

§total_order_im: &'a str

Pre-occupied margin for order. For portfolio margin mode, it returns “”.

§total_position_im: &'a str

Sum of initial margin of all positions + Pre-occupied liquidation fee. For portfolio margin mode, it returns “”.

§total_position_mm: &'a str

Sum of maintenance margin for all positions. For portfolio margin mode, it returns “”.

§unrealised_pnl: &'a str

Unrealised P&L.

§cum_realised_pnl: &'a str

Cumulative Realised P&L.

Trait Implementations§

Source§

impl<'a> Debug for WalletCoin<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de: 'a, 'a> Deserialize<'de> for WalletCoin<'a>

Source§

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<'a> Freeze for WalletCoin<'a>

§

impl<'a> RefUnwindSafe for WalletCoin<'a>

§

impl<'a> Send for WalletCoin<'a>

§

impl<'a> Sync for WalletCoin<'a>

§

impl<'a> Unpin for WalletCoin<'a>

§

impl<'a> UnwindSafe for WalletCoin<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,