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_name
employees
properties.
- Added
ex_date
currency
description
frequency
properties. - Removed
flag
type
qualified
indicated
properties.
- Removed
estimated_eps
estimated_change_percent
estimated_change_percent_s
symbol_id
properties.
- Removed
beta
short_interest
short_date
dividend_rate
latest_eps
latest_eps_date
return_on_equity
consensus_eps
number_of_estimates
symbol
ebitda
revenue
revenue_dollar
gross_profit
gross_profit_dollar
cash
cash_dollar
dept
dept_dollar
revenue_per_share
revenue_per_employee
pe_ratio_high
pe_ratio_low
eps_surprise_dollar
eps_surprise_percent
eps_surprise_percent_s
return_on_assets
return_on_capital
profit_margin
price_to_sales
price_to_book
price_to_sales_dollar
price_to_book_dollar
institution_percent
institution_percent_s
insider_percent
insider_percent_s
short_ratio
properties.
- Removed market news.
- Added
crypto
api 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 400
After:
IEX::Resources::Chart.get('MSFT', '1d', chart_interval: 10, invalid_option: 'foo')
> IEX::Errors::ClientError: "invalidOption" is not allowed
See #9 for more information.