This is a simple script written in Go that will download historical ticker data from GAINCapital for you.
Download the binary from the releases page.
Make sure you have:
- Go 1.6
- Glide
$ git clone git@github.com:nii236/GAINCapital-scraper.git
$ cd GAINCapital-scraper
$ glide install
$ go build
Create a config.json
file. Here's an example:
{
"from": 2013,
"to": 2013,
"pairs": ["AUD_USD", "EUR_USD", "GBP_USD", "USD_JPY"]
}
Run the program:
./GAINCapital-scraper fetch
Enjoy!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D