Unofficial Python IEX Cloud Api.
Project description
iex-api
Unofficial Python IEX Cloud Api.
Features
- Supports Income, CashFlow, Financials, Quote, EndOfDayPrice
- Primarily uses time-series to make it easier to query older data
- Is asynchronous
- Typed
Quick Start
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'))
Installation
Stable Release: pip install iex_api
Development Head: pip install git+https://github.com/volpyx/iex_api.git
Documentation
For full package documentation please visit volpyx.github.io/iex_api.
Development
See CONTRIBUTING.md for information related to developing the code.
The Four Commands You Need To Know
-
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for iex_api-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 461d4e1792287d7f24f04382fa583474a0f2e003c8fa65bda82d00363c1fad46 |
|
MD5 | 072c2e58f83b9913b32b2439bf18961c |
|
BLAKE2b-256 | a0fed3f4fc97e1a751b35ffa1861f7150528a9d89f3e5f11c85f9d2fb88c0f9a |