Skip to content

Commit b474c57

Browse files
authored
Allow name on API withdraws
1 parent d2bbfc5 commit b474c57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

node-binance-api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,8 +2871,9 @@ let api = function Binance( options = {} ) {
28712871
* @param {string} name - the name to save the address as. Set falsy to prevent Binance saving to address book
28722872
* @return {promise or undefined} - omitting the callback returns a promise
28732873
*/
2874-
withdraw: function ( asset, address, amount, addressTag = false, callback = false, name = 'API Withdraw' ) {
2874+
withdraw: function ( asset, address, amount, addressTag = false, callback = false, name = false ) {
28752875
let params = { asset, address, amount };
2876+
if ( name ) params.name = name;
28762877
if ( addressTag ) params.addressTag = addressTag;
28772878
if ( !callback ) {
28782879
return new Promise( ( resolve, reject ) => {

0 commit comments

Comments
 (0)