Skip to content

Commit

Permalink
ccxt#7 poloniex fetchTickers
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Aug 8, 2017
1 parent 9d7001b commit 91b28f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -11328,6 +11328,21 @@ var poloniex = {
};
},

async fetchTickers () {
await this.loadMarkets ();
let response = await this.publicGetReturnTicker ();
let ids = Object.keys (tickers);
let result = {};
for (let i = 0; i < ids.length; i++) {
let id = ids[i];
let market = this.markets_by_id[id];
let symbol = market['symbol'];
let ticker = tickers[id];
result[symbol] = this.parseTicker (ticker, market);
}
return result;
},

async fetchTicker (market) {
await this.loadMarkets ();
let m = this.market (market);
Expand Down

0 comments on commit 91b28f4

Please sign in to comment.