Skip to content

Commit

Permalink
Add futuresCountdownCancelAll
Browse files Browse the repository at this point in the history
  • Loading branch information
jaggedsoft authored Jun 23, 2020
1 parent 601ff58 commit c4e6e99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node-binance-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3045,6 +3045,12 @@ let api = function Binance( options = {} ) {
return promiseRequest( 'v1/allOpenOrders', params, {base:fapi, type:'SIGNED', method:'DELETE'} );
},

futuresCountdownCancelAll: async ( symbol, countdownTime = 0, params = {} ) => {
params.symbol = symbol;
params.countdownTime = countdownTime;
return promiseRequest( 'v1/countdownCancelAll', params, {base:fapi, type:'SIGNED', method:'POST'} );
},

futuresOpenOrders: async ( symbol = false, params = {} ) => {
if ( symbol ) params.symbol = symbol;
return promiseRequest( 'v1/openOrders', params, {base:fapi, type:'SIGNED'} );
Expand Down

0 comments on commit c4e6e99

Please sign in to comment.