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 strCoin name, such as BTC, ETH, USDT, USDC.
equity: &'a strEquity of current coin.
usd_value: &'a strUSD value of current coin. If this coin cannot be collateral, then it is 0.
wallet_balance: &'a strWallet balance of current coin.
borrow_amount: &'a strBorrow amount of current coin.
available_to_borrow: &'a strAvailable amount to borrow of current coin.
available_to_withdraw: &'a strAvailable amount to withdraw of current coin.
accrued_interest: &'a strAccrued interest.
total_order_im: &'a strPre-occupied margin for order. For portfolio margin mode, it returns “”.
total_position_im: &'a strSum of initial margin of all positions + Pre-occupied liquidation fee. For portfolio margin mode, it returns “”.
total_position_mm: &'a strSum of maintenance margin for all positions. For portfolio margin mode, it returns “”.
unrealised_pnl: &'a strUnrealised P&L.
cum_realised_pnl: &'a strCumulative Realised P&L.
Trait Implementations§
Source§impl<'a> Debug for WalletCoin<'a>
impl<'a> Debug for WalletCoin<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for WalletCoin<'a>
impl<'de: 'a, 'a> Deserialize<'de> for WalletCoin<'a>
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<'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> 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