Skip to content

Commit 66a306f

Browse files
committedSep 3, 2020
bitpanda minor edits
1 parent c898154 commit 66a306f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎js/bitpanda.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ module.exports = class bitpanda extends Exchange {
577577

578578
async fetchTickers (symbols = undefined, params = {}) {
579579
await this.loadMarkets ();
580-
const tickers = await this.publicGetMarketTicker (params);
580+
const response = await this.publicGetMarketTicker (params);
581581
//
582582
// [
583583
// {
@@ -599,12 +599,12 @@ module.exports = class bitpanda extends Exchange {
599599
// ]
600600
//
601601
const result = {};
602-
for (let i = 0; i < tickers.length; i++) {
603-
const ticker = this.parseTicker (tickers[i]);
602+
for (let i = 0; i < response.length; i++) {
603+
const ticker = this.parseTicker (response[i]);
604604
const symbol = ticker['symbol'];
605605
result[symbol] = ticker;
606606
}
607-
return result;
607+
return this.filterByArray (result, 'symbol', symbols);
608608
}
609609

610610
async fetchOrderBook (symbol, limit = undefined, params = {}) {

0 commit comments

Comments
 (0)
Please sign in to comment.