Data downloader for Gekko

A really great guy from the Gekko community called Haxus has built a data downloader for Gekko. It works by getting data from https://bitcoincharts.com/charts.

You will need to download and use the shell script and follow his instructions below. If you have any queries put them in the comments.

Install “bitcoin-scraper”
git clone https://github.com/F1LT3R/bitcoin-scraper.git
cd bitcoin-scraper
mkdir data
npm install

### Fix Bugs if not already done by the developer meanwhile
### Font fix
cd node_modules/figlet/fonts/
wget http://www.textfiles.com/art/pepper.flf
cd ../../../

### spelling fix
sed -i ‘s/pepper/Pepper/’ combine.js
sed -i ‘s/pepper/Pepper/’ scrape.js

### Fix the URL to get minute candles instead of hour candles:
sed -i “s/r=60/r=1/g” scrape.js

### Configure the market you want to download
# by changing “const market = ‘bitstampUSD’“ to
# whatever you want, plz see
# https://bitcoincharts.com/charts (symbols) for more detailes
const market = ‘bitstampUSD’

# You may also change the timeframe within that file
const dates = {
from: {
year: 2011,
month: 9,
day: 14
},

to: {
year: 2017,
month: 08,
day: 9
},
}

### Now let us do the magic
./convertToDB.sh

#move the
mv data/bitstamp_0.1.db /Path/To/Gekko/history/