Skip to content

Commit 62819d4

Browse files
authored
Handling outboundAccountPosition 'balanceUpdate' event by maxah
2 parents 0e3a698 + 7072098 commit 62819d4

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
@@ -2078,7 +2078,7 @@ let api = function Binance( options = {} ) {
20782078
if ( Binance.options.margin_execution_callback ) Binance.options.margin_execution_callback( data );
20792079
} else if ( type === 'listStatus' ) {
20802080
if ( Binance.options.margin_list_status_callback ) Binance.options.margin_list_status_callback( data );
2081-
} else if ( type === 'outboundAccountPosition' ) {
2081+
} else if ( type === 'outboundAccountPosition' || type === 'balanceUpdate') {
20822082
Binance.options.margin_balance_callback( data );
20832083
} else {
20842084
Binance.options.log( 'Unexpected userMarginData: ' + type );

0 commit comments

Comments
 (0)