crypto-aggregator
Continuously scans exchanges and calculates the volume-weighted average price of each cryptocurrency.
![NPM Downloads](https://img.shields.io/npm/dt/crypto-aggregator.svg)
#Installation
npm install crypto-aggregator --save
Screenshot
examples/demo.js
![Output example](https://raw.githubusercontent.com/ourarash/crypto-aggregator/master/screenshot.gif)
Usage
Simple
In its simplest form, it can run as:
let options = {
getForexData_oxr: true,
osx_app_id: "YOUR_OSX_APP_ID",
};
var ca = require("../index.js")(options);
ca.start(options);
Other options and default values
Below are other options and their default values:
options: {
loopForEver: true,
maxNumberOfIterations: 10,
printBanner: true,
getCoinGeckoPrices: true,
getForexData_oxr: false,
osx_app_id: "YOUR_OSX_APP_ID",
enable: true,
bypassOutliers: true,
outlierStandardDeviationDistanceFromMean: 3,
aggregatePriceInterval_ms: 5000,
coingGeckoUpdateInterval_ms: 100 * 1000,
statusBarTextInterval_ms: 1000,
aggregatePricesCallBack: null,
iterationCallBack: null,
discoveredOneTickerCallBack:null,
bPrintStatus: true,
printAllPrices: true,
coinsInStatusBar: ["BTC", "ETH"],
ccxtExchangeRateLimitDivider:1,
trustedExchanges: [
"huobipro",
"kraken",
"binance",
"bittrex",
"bitmex",
"bitstamp",
"coinbasepro",
"gemini",
"itbit",
"bitflyer",
"poloniex",
"independentreserve",
"liquid",
"upbit"
],
excludeExchanges: [
"_1btcxe",
"allcoin",
"theocean",
"xbtce",
"cointiger",
"bibox",
"coolcoin",
"uex",
"dsx",
"flowbtc",
"bcex"
]
}
Logger
The logger used in this package is available separately in log-with-statusbar npm package
License
Free to use under ICS. Backlinks and credit are greatly appreciated!
Issue and Pull Requests
Issues and pull requests are welcome.