Reference Data¶
Endpoints
IEX Symbols¶
- iexfinance.refdata.get_iex_symbols(**kwargs)¶
Returns array of all symbols the Investor’s Exchange supports for trading
Reference: https://iexcloud.io/docs/api/#iex-symbols
Data Weighting:
Free
Usage¶
from iexfinance.refdata import get_iex_symbols
get_iex_symbols()[:2]
International Symbols¶
By Exchange¶
- iexfinance.refdata.get_exchange_symbols(exchange, **kwargs)¶
Returns array of all international symbols in a given exchange that IEX Cloud supports for API calls
https://iexcloud.io/docs/api/#international-symbols
Data Weighting:
100
per call- exchange: str
Case insensitive string of Exchange using IEX Supported Exchanges list
By Region¶
- iexfinance.refdata.get_region_symbols(region, **kwargs)¶
Returns array of all international symbols in a give region that IEX Cloud supports for API calls
https://iexcloud.io/docs/api/#international-symbols
Data Weighting:
100
per call- region: str
2 letter case insensitive string of country codes using ISO 3166-1 alpha-2
Sectors¶
- iexfinance.refdata.get_sectors(**kwargs)¶
Returns array of all sectors that IEX Cloud supports for API calls
Reference: https://iexcloud.io/docs/api/#sectors Data Weighting:
1
per call
Symbols¶
- iexfinance.refdata.get_symbols(**kwargs)¶
Returns array of all symbols that IEX Cloud supports for API calls
Reference: https://iexcloud.io/docs/api/#symbols Data Weighting:
100
per call
Usage¶
In [1]: from iexfinance.refdata import get_symbols
In [2]: get_symbols()[:2]
Out[2]:
symbol exchange exchangeSuffix ... figi cik lei
0 A NYS NU ... 062B03CDVB0G 1128963 MYUAIW0P7X982W7RX2QG
1 AA NYS NU ... B3DGB30B3TH0 1680873 050ZP296U21WTE9FW431
[2 rows x 14 columns]
U.S. Holidays & Trading Dates¶
- iexfinance.refdata.get_us_trading_dates_holidays(type_, direction, last=1, startDate=None, **kwargs)¶
Function to obtain US trading dates or holidays from a given date
Reference: https://iexcloud.io/docs/api/#u-s-holidays-and-trading-dates
Data Weighting:
1
per row returned- type_: str
can be “trade” or “holiday”. Determines whether to return days where trading took place or holidays
- direction: str
can be “next” or “last”. Determines whether to return dates in the future or the past
- last: int, default 1
number of days to go backward or forward
- startDate: str, datetime.datetime, default current date
specify first/last day included in next/last, respectively