Skip to content

Commit

Permalink
livecoin fetchDepositAddress ccxt#769
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 6, 2017
1 parent 2e274a2 commit afd0682
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions js/livecoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,20 @@ module.exports = class livecoin extends Exchange {
}, params));
}

async fetchDepositAddress (currency, params = {}) {
let request = {
'currency': currency,
};
let response = await this.privateGetPaymentGetAddress (this.extend (request, params));
let address = this.safeString (response, 'wallet');
return {
'currency': currency,
'address': address,
'status': 'ok',
'info': response,
};
}

sign (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
let url = this.urls['api'] + '/' + path;
let query = this.urlencode (this.keysort (params));
Expand Down

0 comments on commit afd0682

Please sign in to comment.