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 buildThis will run
toxwhich will run all your tests in both Python 3.7 and Python 3.8 as well as linting your code. -
make cleanThis will clean up various Python and build generated files so that you can ensure that you are working in a clean environment.
-
make docsThis 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iex_api-0.0.9.tar.gz.
File metadata
- Download URL: iex_api-0.0.9.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fe3a186347bb017e1c6c510793d18ff8933e4736ee39b041ee36bc94bcd0e05
|
|
| MD5 |
80b7b873abd591defdf7a84be276a2f0
|
|
| BLAKE2b-256 |
b9958a9c31233f76e7d6d13393492be8a60a2e6f1883da08586d9fd76a8add7f
|
File details
Details for the file iex_api-0.0.9-py2.py3-none-any.whl.
File metadata
- Download URL: iex_api-0.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71483f278d08a69aec174a05e9edeb9085e12582adaf8713fe61eb50168bb969
|
|
| MD5 |
50057156d5cabd7e965dc69f4d418f9b
|
|
| BLAKE2b-256 |
78f751a0be5fc71cd188ef2f6dc59ce1cf64169ad57e4fcbc97d44320dd72c71
|