crypto-aggregator
Continuously scans various exchanges and calculates the average price of each cryptocurrency.
#Installation
npm install crypto-aggregator --save
Screenshot
examples/demo.js
Usage
Simple
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
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
Issue and Pull Requests
Issues and pull requests are welcome.