Unofficial gem for the CoinMarketCal API.
CoinMarketCal is the economic calendar for the cryptocurrency market. Evidence-based and community-driven.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install coinmarketcal
You can authenticate access to your CoinMarketCal account by configuring your implementation of the coinmarketcal gem. This is accomplished by using a config block at the top of your application.
Set up your keys at: https://api.coinmarketcal.com/developer/dashboard
Coinmarketcal.config do |c| c.client_id = 'your-client-id' c.client_secret = 'your-client-secret' end
To retrieve list of coins:
To retrieve list of events:
Coinmarketcal::Event.all coins: "bitcoin,ethereum", max: 10, sort_by: "created_desc", date_range_start: "30/07/2018", date_range_end: "30/08/2018"
To retrieve list of categories:
For more information about API, visit https://api.coinmarketcal.com/
- Fork it ( https://github.com/toreserter/coinmarketcal/fork )
- 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)
- Create a new Pull Request
The gem is available as open source under the terms of the MIT License.