Saved Balance

saved_balance(coin: str, account_id: Optional[int]) -> [Balance]

Returns structure that can be used to obtain balance of tokens saved at the moment when update_balance_formula returns True or any other non-zero value

If account_id is empty - uses current exchange for bot’s account id

coin check [balance] specification

Important: can’t be used in update_balance_formula inside group

Example:

saved_balance('ETH').available → 100.2

saved_balance('base').reserved → 200.3

saved_balance(’counter’).total → 300.5

saved_balance('USDT').total → 400.55

Last updated