crypto-tickers

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i crypto-tickers

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kevva