Project

iexcloud

0.0
No commit activity in last 3 years
No release in over 3 years
Wrapper for the IEX Cloud API. https://iexcloud.io/docs/api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 2.7
>= 0
~> 3.0
~> 4.0
~> 3.5

Runtime

 Project Readme

IEX Cloud

Wrapper for the IEX Cloud API. https://iexcloud.io/docs/api

Installation

Add this line to your application's Gemfile:

gem 'iexcloud'

And then execute:

$ bundle

Or install it yourself as:

$ gem install iexcloud

Usage

IEX cloud uses a publishable key and secret key for authentication. These values are loaded into the gem via the PUBLISHABLE_KEY and SECRET_KEY environment variables. In development, you can load these with dotenv by setting the values in .env and running:

Dotenv.load(".env")

Make sure you never commit your secret key to any repo!

Configure the version of the API you're using and endpoint with:

IEXCloud.configure do |config|
  config.api_version = "beta" #required
  config.endpoint = "https://sandbox.iexapis.com/" #required
  config.proxy = "http://proxy" #optional
end

Documentation

Development

After checking out the repo, copy .env to .env.test and fill in the environment variables. Run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/whitethunder/iexcloud.

License

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