Skip to content

Commit b0f87e1

Browse files
authored
Merge pull request #952 from ccxt/make-optional-callback-balance
fix(client): make balance_callback call optional
2 parents adaeba9 + c2f5c12 commit b0f87e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node-binance-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2647,7 +2647,7 @@ export default class Binance {
26472647
} else if (type === 'listStatus') {
26482648
if (this.Options.list_status_callback) this.Options.list_status_callback(data);
26492649
} else if (type === 'outboundAccountPosition' || type === 'balanceUpdate') {
2650-
this.Options.balance_callback(data);
2650+
if (this.Options.balance_callback) this.Options.balance_callback(data);
26512651
} else {
26522652
this.Options.log('Unexpected userData: ' + type);
26532653
}

0 commit comments

Comments
 (0)