Skip to content

Commit

Permalink
hitbtc2 createDepositAddress / fetchDepositAddress currency code python
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jan 9, 2018
1 parent cc81b16 commit 21b945a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/hitbtc2.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,9 +977,10 @@ module.exports = class hitbtc2 extends hitbtc {
}

async createDepositAddress (currency, params = {}) {
let currencyId = this.currencyId (currency);
await this.loadMarkets ();
let currency = this.currency (currency);
let response = await this.privatePostAccountCryptoAddressCurrency ({
'currency': currencyId,
'currency': currency['id'],
});
let address = response['address'];
return {
Expand All @@ -991,9 +992,10 @@ module.exports = class hitbtc2 extends hitbtc {
}

async fetchDepositAddress (currency, params = {}) {
let currencyId = this.currencyId (currency);
await this.loadMarkets ();
let currency = this.currency (currency);
let response = await this.privateGetAccountCryptoAddressCurrency ({
'currency': currencyId,
'currency': currency['id'],
});
let address = response['address'];
return {
Expand Down

0 comments on commit 21b945a

Please sign in to comment.