Skip to content

A Ruby library to query the Alpha Vantage API.

License

Notifications You must be signed in to change notification settings

hamorim/alpharb

Repository files navigation

Alpharb Gem Version

A Ruby library to query the Alpha Vantage API.

Installation

Add this line to your application's Gemfile:

gem 'alpharb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install alpharb

Usage

require 'alpharb'

Alpharb::Client.new('APIKEY').search('BIDI4')

{
  :bestMatches=>[
    {
      :"1. symbol"=>"BIDI4.SAO",
      :"2. name"=>"Banco Inter S.A.",
      :"3. type"=>"Equity",
      :"4. region"=>"Brazil/Sao Paolo",
      :"5. marketOpen"=>"10:00",
      :"6. marketClose"=>"17:30",
      :"7. timezone"=>"UTC-03",
      :"8. currency"=>"BRL",
      :"9. matchScore"=>"0.7692"
    }
  ]
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hamorim/alpharb. 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.

Code of Conduct

Everyone interacting in the Alpharb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.