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

Method parseBalanceHelper

ts/src/binance.ts:3704–3712  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

3702 }
3703
3704 parseBalanceHelper (entry) {
3705 const account = this.account ();
3706 account['used'] = this.safeString (entry, 'locked');
3707 account['free'] = this.safeString (entry, 'free');
3708 const interest = this.safeString (entry, 'interest');
3709 const debt = this.safeString (entry, 'borrowed');
3710 account['debt'] = Precise.stringAdd (debt, interest);
3711 return account;
3712 }
3713
3714 parseBalanceCustom (response, type = undefined, marginMode = undefined, isPortfolioMargin = false): Balances {
3715 const result = {

Callers 1

parseBalanceCustomMethod · 0.95

Calls 3

accountMethod · 0.45
safeStringMethod · 0.45
stringAddMethod · 0.45

Tested by

no test coverage detected