Skip to content

Commit 7072098

Browse files
authored
Update node-binance-api.js
Handling 'balanceUpdate' event
1 parent 28e1162 commit 7072098

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

node-binance-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ let api = function Binance( options = {} ) {
20762076
if ( Binance.options.margin_execution_callback ) Binance.options.margin_execution_callback( data );
20772077
} else if ( type === 'listStatus' ) {
20782078
if ( Binance.options.margin_list_status_callback ) Binance.options.margin_list_status_callback( data );
2079-
} else if ( type === 'outboundAccountPosition' ) {
2079+
} else if ( type === 'outboundAccountPosition' || type === 'balanceUpdate') {
20802080
Binance.options.margin_balance_callback( data );
20812081
} else {
20822082
Binance.options.log( 'Unexpected userMarginData: ' + type );

0 commit comments

Comments
 (0)