UNPKG

@jmparsons/ccxt

Version:

A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges

21 lines (13 loc) 470 B
'use strict' const ccxt = require ('../../ccxt.js') const log = require ('ololog') const symbol = 'ETH/BTC' const exchanges = [ 'gdax', 'hitbtc2', 'poloniex' ] ;(async () => { const result = await Promise.all (exchanges.map (async id => { const exchange = new ccxt[id] ({ 'enableRateLimit': true }) const ticker = await exchange.fetchTicker (symbol) return exchange.extend ({ 'exchange': id }, ticker) })) log (result); }) ()