pub struct CoinBalance {
pub coin: Option<String>,
pub equity: Option<String>,
pub wallet_balance: Option<String>,
pub position_margin: Option<String>,
pub available_to_withdraw: Option<String>,
pub available_to_trade: Option<String>,
pub unrealised_pnl: Option<String>,
pub cum_realised_pnl: Option<String>,
pub bonus: Option<String>,
pub borrow_amount: Option<String>,
}Expand description
Coin balance within the wallet.
Fields§
§coin: Option<String>Coin name (e.g. “USDT”, “BTC”)
equity: Option<String>Equity (total value in this coin)
wallet_balance: Option<String>Wallet balance
position_margin: Option<String>Position margin
available_to_withdraw: Option<String>Available balance
available_to_trade: Option<String>Available to trade (order margin)
unrealised_pnl: Option<String>Unrealised PnL
cum_realised_pnl: Option<String>Cumulative realised PnL
bonus: Option<String>Bonus
borrow_amount: Option<String>Whether this is a borrow coin (margin)
Trait Implementations§
Source§impl Clone for CoinBalance
impl Clone for CoinBalance
Source§fn clone(&self) -> CoinBalance
fn clone(&self) -> CoinBalance
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 CoinBalance
impl Debug for CoinBalance
Source§impl<'de> Deserialize<'de> for CoinBalance
impl<'de> Deserialize<'de> for CoinBalance
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 CoinBalance
impl RefUnwindSafe for CoinBalance
impl Send for CoinBalance
impl Sync for CoinBalance
impl Unpin for CoinBalance
impl UnsafeUnpin for CoinBalance
impl UnwindSafe for CoinBalance
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