Get price tickers for crypto currencies
$ npm install crypto-tickers
const cryptoTickers = require('crypto-tickers');
cryptoTickers().then(tickers => {
console.log(tickers);
/*
{
'ETH/BTC': {
binance: {...},
bitfinex: {...},
...
},
...
}
*/
});
Returns a Promise for an object with each symbol pair defined as keys. Each ticker has the following structure https://github.com/ccxt/ccxt/wiki/Manual#price-tickers.
Type: Object
Type: Array<String>
Default: ['binance', 'bitfinex', 'bittrex', 'gdax', 'poloniex']
Exchanges to fetch price tickers from.
Type: Array<String>
Default: ['ETH/BTC', 'LTC/BTC']
Symbol pairs to fetch.
Returns an array of all available exchanges.
MIT © Kevin Mårtensson