Skip to content

Commit 9af22e7

Browse files
committedJun 27, 2021
This change is required to listen for Orders
1 parent 8bad385 commit 9af22e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎node-binance-api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5220,7 +5220,7 @@ let api = function Binance( options = {} ) {
52205220
}
52215221
}, 60 * 30 * 1000 ); // 30 minute keepalive
52225222
Binance.options.balance_callback = callback;
5223-
Binance.options.execution_callback = execution_callback;
5223+
Binance.options.execution_callback = execution_callback ? callback : execution_callback;//This change is required to listen for Orders
52245224
Binance.options.list_status_callback = list_status_callback;
52255225
const subscription = subscribe( Binance.options.listenKey, userDataHandler, reconnect );
52265226
if ( subscribed_callback ) subscribed_callback( subscription.endpoint );

0 commit comments

Comments
 (0)