Skip to main content

balance

Function balance 

Source
pub fn balance(c: &CoinBalance, now: Instant) -> Balance
Expand description

The balance of one coin.

blocked is the margin the open orders and positions hold plus what open spot orders lock. available is the equity (the wallet balance plus the unrealised profit) less blocked, never below zero: what can still open a position. The exchange shows an available figure only for the whole account (in USD), so this per coin figure is a reading of the connector, not the exchange’s own.