File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ module.exports = class bitpanda extends Exchange {
577
577
578
578
async fetchTickers ( symbols = undefined , params = { } ) {
579
579
await this . loadMarkets ( ) ;
580
- const tickers = await this . publicGetMarketTicker ( params ) ;
580
+ const response = await this . publicGetMarketTicker ( params ) ;
581
581
//
582
582
// [
583
583
// {
@@ -599,12 +599,12 @@ module.exports = class bitpanda extends Exchange {
599
599
// ]
600
600
//
601
601
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 ] ) ;
604
604
const symbol = ticker [ 'symbol' ] ;
605
605
result [ symbol ] = ticker ;
606
606
}
607
- return result ;
607
+ return this . filterByArray ( result , 'symbol' , symbols ) ;
608
608
}
609
609
610
610
async fetchOrderBook ( symbol , limit = undefined , params = { } ) {
You can’t perform that action at this time.
0 commit comments