We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents adaeba9 + c2f5c12 commit b0f87e1Copy full SHA for b0f87e1
src/node-binance-api.ts
@@ -2647,7 +2647,7 @@ export default class Binance {
2647
} else if (type === 'listStatus') {
2648
if (this.Options.list_status_callback) this.Options.list_status_callback(data);
2649
} else if (type === 'outboundAccountPosition' || type === 'balanceUpdate') {
2650
- this.Options.balance_callback(data);
+ if (this.Options.balance_callback) this.Options.balance_callback(data);
2651
} else {
2652
this.Options.log('Unexpected userData: ' + type);
2653
}
0 commit comments