New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

crypto-tickers

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-tickers

Get price tickers for crypto currencies

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

arbitrage

FAQs

Package last updated on 14 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts