1.0.0 • Published 6 years ago

crypto-tickers v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

crypto-tickers Build Status

Get price tickers for crypto currencies

Install

$ npm install crypto-tickers

Usage

const cryptoTickers = require('crypto-tickers');

cryptoTickers().then(tickers => {
	console.log(tickers);
	/*
		{
			'ETH/BTC': {
				binance: {...},
				bitfinex: {...},
				...
			},
			...
		}
	*/
});

API

cryptoTickers(options)

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.

options

Type: Object

exchanges

Type: Array<String> Default: ['binance', 'bitfinex', 'bittrex', 'gdax', 'poloniex']

Exchanges to fetch price tickers from.

symbols

Type: Array<String> Default: ['ETH/BTC', 'LTC/BTC']

Symbol pairs to fetch.

cryptoTickers.exchanges

Returns an array of all available exchanges.

License

MIT © Kevin Mårtensson