Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 2.06 KB

README.md

File metadata and controls

47 lines (30 loc) · 2.06 KB

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']