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

Method parse_balance_helper

python/ccxt/async_support/gate.py:2934–2941  ·  view source on GitHub ↗
(self, entry)

Source from the content-addressed store, hash-verified

2932 return self.parse_tickers(response, symbols)
2933
2934 def parse_balance_helper(self, entry):
2935 account = self.account()
2936 account['used'] = self.safe_string_2(entry, 'freeze', 'locked')
2937 account['free'] = self.safe_string(entry, 'available')
2938 account['total'] = self.safe_string(entry, 'total')
2939 if 'borrowed' in entry:
2940 account['debt'] = self.safe_string(entry, 'borrowed')
2941 return account
2942
2943 async def fetch_balance(self, params={}) -> Balances:
2944 """

Callers 1

fetch_balanceMethod · 0.95

Calls 3

safe_string_2Method · 0.80
safe_stringMethod · 0.80
accountMethod · 0.45

Tested by

no test coverage detected