crypto-observe
Service to get the growth or the decline of cryptocurrencies
Requirement
node
> 8- Some crypto currencies in mind
How to use
npm install crypto-observe
- For example:
const CryptoObserve = ; const config = currencies: "bitcoin" "ethereum""ripple" // REQUIRED: The currencies to be scraped frequency: "10s" // REQUIRED: The frequency of scraping coinmarketcap. E.g: "45s", "2m", "1h" decrease: type: "daily" // REQUIRED: Check the threshold of decline, whether decline "hourly", "daily", or "weekly" percentage: 5 // REQUIRED: The minum percentage of decline before emitting "danger". E.g: It will emit "danger" if it declined below 5% rest: "3h" // REQUIRED: Rest time before emitting "danger" again. E.g: "15m", "3h", "1d" increase: type: "daily" percentage: 5 rest: "5m" ; const watch = config; watch; watch; watch; watch;