Skip to content

Commit

Permalink
depositHistory: Support additional parameters (Thanks nicolas!) #144
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Eyrick authored Mar 1, 2018
1 parent 968eae8 commit df83aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node-binance-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ LIMIT_MAKER
let params = asset ? {asset:asset} : {};
signedRequest(wapi+'v3/withdrawHistory.html', params, callback);
},
depositHistory: function(callback, asset = false) {
let params = asset ? {asset:asset} : {};
depositHistory: function(callback, params = {}) {
if ( typeof params === 'string' ) params = {asset:params}; // Support 'asset' (string) or optional parameters (object)
signedRequest(wapi+'v3/depositHistory.html', params, callback);
},
depositAddress: function(asset, callback) {
Expand Down

0 comments on commit df83aa3

Please sign in to comment.