coinboard
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "coinboard", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A command line tool for bitcoins dashboard", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,5 +45,5 @@ <p align=center> | ||
-cur, --currency <string> BOTH: specify the currency of coin (Default: USD) | ||
-d, --days <n> CHART: number of days the chart will go back, must be 90 > days > 0 (Default: 30) | ||
-r, --rank <n> RANK: starting rank (Default: 0) | ||
-l, --limit <n> RANK: specify the number of coins to display (Default: 5) | ||
-d, --days <number> CHART: number of days the chart will go back, must be 90 > days > 0 (Default: 30) | ||
-r, --rank <number> RANK: starting rank (Default: 0) | ||
-l, --limit <number> RANK: specify the number of coins to display (Default: 5) | ||
-h, --help output usage information | ||
@@ -50,0 +50,0 @@ ``` |
@@ -97,2 +97,7 @@ #!/usr/bin/env node | ||
return Promise.all(promises) | ||
.then(res => res) | ||
.catch(e => { | ||
console.error('\n🛑 Please check the limit of Cryptocompare API usage: https://www.cryptocompare.com/api/#requests, and try again later!\n Second limit API: https://min-api.cryptocompare.com/stats/rate/second/limit\nHour limit API: https://min-api.cryptocompare.com/stats/rate/hour/limit') | ||
throw e | ||
}) | ||
} | ||
@@ -99,0 +104,0 @@ const fetchSnapShot = async () => await axios.get(snapShotAPI) |
302050
177