Skip to content

Commit

Permalink
added missing loadMarkets after updating bithumb fetchMarkets fix ccx…
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 19, 2017
1 parent d864291 commit 33f324f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/bithumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ module.exports = class bithumb extends Exchange {
}

async fetchOrderBook (symbol, params = {}) {
await this.loadMarkets ();
let market = this.market (symbol);
let response = await this.publicGetOrderbookCurrency (this.extend ({
'count': 50, // max = 50
Expand Down Expand Up @@ -167,6 +168,7 @@ module.exports = class bithumb extends Exchange {
}

async fetchTickers (symbols = undefined, params = {}) {
await this.loadMarkets ();
let response = await this.publicGetTickerAll (params);
let result = {};
let timestamp = response['data']['date'];
Expand All @@ -188,6 +190,7 @@ module.exports = class bithumb extends Exchange {
}

async fetchTicker (symbol, params = {}) {
await this.loadMarkets ();
let market = this.market (symbol);
let response = await this.publicGetTickerCurrency (this.extend ({
'currency': market['base'],
Expand Down Expand Up @@ -218,6 +221,7 @@ module.exports = class bithumb extends Exchange {
}

async fetchTrades (symbol, since = undefined, limit = undefined, params = {}) {
await this.loadMarkets ();
let market = this.market (symbol);
let response = await this.publicGetRecentTransactionsCurrency (this.extend ({
'currency': market['base'],
Expand Down

0 comments on commit 33f324f

Please sign in to comment.