/pyEX

Complete Python interface to IEX and IEX cloud APIs

Primary LanguagePythonApache License 2.0Apache-2.0

pyEX

Python interface to IEX Api (https://iextrading.com/developer/docs/)

Now supporting IEX Cloud

Build Status Coverage BCH compliance License PyPI Docs

Attribution

If you redistribute our API data:

  • Cite IEX using the following text and link: “Data provided for free by IEX.”
  • Provide a link to https://iextrading.com/api-exhibit-a in your terms of service.
  • Additionally, if you display our TOPS price data, cite “IEX Real-Time Price” near the price.

IEX Cloud attribution

Powered by IEX Cloud

Getting Started

6 Months of spy data in a dataframe in 2 lines:

    # fetch spy from website, clean for some bad formatted symbols
    spy = [x for x in pandas.read_html('https://etfdailynews.com/etf/spy/', attrs={'id': 'etfs-that-own'})[0].Symbol.values.tolist() if isinstance(x, str)]

    # bulk fetch 6m of data
    pyEX.bulkBatchDF(spy, ['chart'], _range='6m')['chart']