No commit activity in last 3 years
No release in over 3 years
A Ruby wrapper for Openexchangerates API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.13
~> 10.0

Runtime

~> 0.14.0
 Project Readme

OpenexchangeratesData

A Ruby wrapper for Openexchangerates API. Open Exchange Rates provides a simple, lightweight and portable JSON API with live and historical foreign exchange (forex) rates, via a simple and easy-to-integrate API, in JSON format.

For more information about the Openexchangerates API, visit:

https://docs.openexchangerates.org/

Installation

Add this line to your application's Gemfile:

gem 'openexchangerates_data'

And then execute:

$ bundle

Or install it yourself as:

$ gem install openexchangerates_data

Usage

First, get your APP ID from Open Exchange Rates

Create a Openexchangerates client using your API ID as follows:

rate = OpenexchangeratesData::Client.new("API_ID")

You can then use that client to get live and historical foreign exchange (forex) rates:

rate.latest

or

rate.historical("2016-12-30")

Get a JSON list of all currency symbols available from the Open Exchange Rates API, along with their full names, for use in your integration:

rate.currencies

Development

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/balyam/openexchangerates_data. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.