Unofficial Python IEX Cloud Api.
- Supports Income, CashFlow, Financials, Quote, EndOfDayPrice
- Primarily uses time-series to make it easier to query older data
- Is asynchronous
- Typed
import asyncio
import os
from iex_api.model.company import Income, CashFlow, Financials
os.environ.update({
"IEX_API_URL": "https://sandbox.iexapis.com/stable/",
"IEX_API_TOKEN": "<>",
})
async def gather_company_info(symbol: str):
income, cashflow, financials = await asyncio.gather(
Income.latest(symbol),
CashFlow.latest(symbol),
Financials.latest(symbol)
)
print(income.gross_profit)
print(cashflow.cash_flow)
print(financials.ebit)
loop = asyncio.get_event_loop()
loop.run_until_complete(gather_company_info('AAPL'))
Stable Release: pip install iex_api
Development Head: pip install git+https://github.com/volpyx/iex_api.git
For full package documentation please visit volpyx.github.io/iex_api.
See CONTRIBUTING.md for information related to developing the code.
-
pip install -e .[dev]
This will install your package in editable mode with all the required development dependencies (i.e.
tox
). -
make build
This will run
tox
which will run all your tests in both Python 3.7 and Python 3.8 as well as linting your code. -
make clean
This will clean up various Python and build generated files so that you can ensure that you are working in a clean environment.
-
make docs
This will generate and launch a web browser to view the most up-to-date documentation for your Python package.