Skip to content

Commit

Permalink
gemini: withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner committed Jan 10, 2018
1 parent 227c55b commit c19851a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions js/gemini.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,20 @@ module.exports = class gemini extends Exchange {
return await this.privatePostCancelOrder ({ 'order_id': id });
}

async withdraw (code, amount, address, params = {}) {
await this.loadMarkets ();
let currency = this.currency (code);
let response = await this.privatePostWithdrawCurrency (this.extend ({
'currency': currency,
'amount': amount,
'address': address,
}, params));
return {
'info': response,
'id': this.safeString (response, 'txHash'),
};
}

sign (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
let url = '/' + this.version + '/' + this.implodeParams (path, params);
let query = this.omit (params, this.extractParams (path));
Expand Down

0 comments on commit c19851a

Please sign in to comment.