Skip to content

Commit e172314

Browse files
authored
Update node-binance-api.js
Added deliveryCommissionRate functionality. Documentation here: https://binance-docs.github.io/apidocs/delivery/en/#user-commission-rate-user_data
1 parent 28e1162 commit e172314

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

node-binance-api.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4238,6 +4238,11 @@ let api = function Binance( options = {} ) {
42384238
params.symbol = symbol;
42394239
return promiseRequest( 'v1/userTrades', params, { base:dapi, type:'SIGNED' } );
42404240
},
4241+
4242+
deliveryCommissionRate: async ( symbol, params = {} ) => {
4243+
if ( symbol ) params.symbol = symbol;
4244+
return promiseRequest( 'v1/commissionRate', params, { base:dapi, type:'SIGNED' } );
4245+
},
42414246

42424247
deliveryGetDataStream: async ( params = {} ) => {
42434248
//A User Data Stream listenKey is valid for 60 minutes after creation. setInterval

0 commit comments

Comments
 (0)