Skip to content

aderyabin/cbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CBR

Ruby wrapper for The Central Bank of the Russian Federation API

Installation

Add this line to your application's Gemfile:

gem 'cbr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cbr

Usage

Reference currency codes

CBR.catalog

Extract a quotation for a current day

CBR.daily

Extract a quatation for a specific day:

CBR.daily(Date.parse('12/12/2014'))

Extract currency for a specific day:

CBR.daily(Date.parse('12/12/2014'))['usd']

Dynamic of quotations of the US dollar:

CBR.dynamic('usd', Date.parse('01/12/2014'), Date.parse('12/12/2014'))

===

Sponsored by Evil Martians

About

Ruby wrapper for The Central Bank of the Russian Federation API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages