#113 Minimum Ruby version is 2.4
#113 Removes default values for Faraday's SSL settings ca_file and ca_path.
If you previously relied on OpenSSL::X509::DEFAULT_CERT_FILE or OpenSSL::X509::DEFAULT_CERT_DIR to set these values you must now do so explicitly. E.g.:
IEX::Api.configure do |config|
config.ca_file = OpenSSL::X509::DEFAULT_CERT_FILE
config.ca_path = OpenSSL::X509::DEFAULT_CERT_DIR
end#110 drops the dependency on money_helper in favor of using the money library directly.
Previously the money_helper library set Money.locale_backend = :currency globally. The default is I18n which looks up the thousands separator and decimal marker. Depending on your project you may need to set this value if you use Money#format without the thousands_separator or decimal_mark options. You are less likely to require this in a Rails project.
This represents a change in the money library's method of handling defaults and is similar to the deprecation warning the library provides until you set Money.rounding_mode=.
On June 1, 2019, IEX API has been sunset for all non-IEX data. IEX Cloud, a non-Exchange platform, continues to provide access to third-party data sources and requires a token. When upgrading to 1.0.0, create an account and get a publishable token from IEX Cloud Console.
Set the environment variable IEX_API_PUBLISHABLE_TOKEN to the token value, or configure the client via IEX::Api::Client.new or IEX::Api.configure.
Before:
IEX::Resources::Price.get('MSFT')After:
client = IEX::Api::Client.new(publishable_token: 'token')
client.price('MSFT')See #46 for more information.
The IEX Cloud API has come with a number of changes.
- Added
security_nameemployeesproperties.
- Added
ex_datecurrencydescriptionfrequencyproperties. - Removed
flagtypequalifiedindicatedproperties.
- Removed
estimated_epsestimated_change_percentestimated_change_percent_ssymbol_idproperties.
- Removed
betashort_interestshort_datedividend_ratelatest_epslatest_eps_datereturn_on_equityconsensus_epsnumber_of_estimatessymbolebitdarevenuerevenue_dollargross_profitgross_profit_dollarcashcash_dollardeptdept_dollarrevenue_per_sharerevenue_per_employeepe_ratio_highpe_ratio_loweps_surprise_dollareps_surprise_percenteps_surprise_percent_sreturn_on_assetsreturn_on_capitalprofit_marginprice_to_salesprice_to_bookprice_to_sales_dollarprice_to_book_dollarinstitution_percentinstitution_percent_sinsider_percentinsider_percent_sshort_ratioproperties.
- Removed market news.
- Added
cryptoapi to get a quote for crypto currency, eg.client.crypto('BTCUSDT').
See #42 for more information.
On previous versions, calling IEX::Resources::Chart.get with an invalid option results on a
Faraday::ClientError. On versions >= 0.4.0, it will return an IEX::Errors::ClientError.
Before:
IEX::Resources::Chart.get('MSFT', '1d', chart_interval: 10, invalid_option: 'foo')
> Faraday::ClientError: the server responded with status 400After:
IEX::Resources::Chart.get('MSFT', '1d', chart_interval: 10, invalid_option: 'foo')
> IEX::Errors::ClientError: "invalidOption" is not allowedSee #9 for more information.