MCPcopy Create free account
hub / github.com/ccxt/ccxt / parse_balance_helper

Method parse_balance_helper

python/ccxt/binance.py:3656–3663  ·  view source on GitHub ↗
(self, entry)

Source from the content-addressed store, hash-verified

3654 return entry
3655
3656 def parse_balance_helper(self, entry):
3657 account = self.account()
3658 account['used'] = self.safe_string(entry, 'locked')
3659 account['free'] = self.safe_string(entry, 'free')
3660 interest = self.safe_string(entry, 'interest')
3661 debt = self.safe_string(entry, 'borrowed')
3662 account['debt'] = Precise.string_add(debt, interest)
3663 return account
3664
3665 def parse_balance_custom(self, response, type=None, marginMode=None, isPortfolioMargin=False) -> Balances:
3666 result = {

Callers 1

parse_balance_customMethod · 0.95

Calls 3

safe_stringMethod · 0.80
string_addMethod · 0.80
accountMethod · 0.45

Tested by

no test coverage detected