crypto-fetch
v0.0.3
Published
Library for fetch historical price data for cryptocurrencies
Readme
crypto-fetch 
command line app and JavaScript library to retrieve crypto-currency daily market data. Currently, it support CryptoCompare and Binance websites.
This repository:
- Command-line application - Get daily crypto-currency market data via command line.
- JavaScript API - Get daily crypto-currency api via programmatically.
CLI
Install Node.js and run this command to install 'crypto-fetch'
npm install -g crypto-fetchUsage
To get daily price data of BitCoin compare with USD dollar, simply enter
crypto-fetch -f BTC -t USDYou will get information with these following format
symbol, time, open, high, low, close, volumeOptions
|Parameter|Required|Default|Description| |---------|--------|-------|-----------| | --fromsymbol, -f | true | | source symbol | | --tosymbol, -t | true | | counter party symbol| | --start, -s | false| | start time in YYYY-MM-DD format (ex. 2017-12-01). If not specify, it will get all available information | | --end, -e | false | | end time in YYYY-MM-DD format (ex. 2017-12-01). If not specify, it will be current date | --market, -m | false | cryptocompare | exchange market data source. now support 4 exchanges, which are cryptocompare, binance, bitfinex and poloniex| | --output, -o | false | | output path. If not specify, it will print through console.
For example, you want to get ETH price in USD dollor from binance exchange. you can get with these command
crypto-fetch -f BTC -t USDT -m binanceAPI
You can get this library from npm
npm install crypto-fetchgetDailyHistoricalPrice(params)Return daily historical price information (promise)
