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

Method parseBalanceHelper

js/src/binance.js:3713–3721  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

3711 return entry;
3712 }
3713 parseBalanceHelper(entry) {
3714 const account = this.account();
3715 account['used'] = this.safeString(entry, 'locked');
3716 account['free'] = this.safeString(entry, 'free');
3717 const interest = this.safeString(entry, 'interest');
3718 const debt = this.safeString(entry, 'borrowed');
3719 account['debt'] = Precise.stringAdd(debt, interest);
3720 return account;
3721 }
3722 parseBalanceCustom(response, type = undefined, marginMode = undefined, isPortfolioMargin = false) {
3723 const result = {
3724 'info': response,

Callers 1

parseBalanceCustomMethod · 0.95

Calls 3

accountMethod · 0.45
safeStringMethod · 0.45
stringAddMethod · 0.45

Tested by

no test coverage detected