A ledger-cli getquote implementation using the free IEX Cloud API.
-
Create a free IEX Cloud API account.
-
Verify your account and generate API tokens.
-
Install
getquote
:pip install --upgrade getquote --prefix /usr/local
-
Create a
getquote.ini
config file in your ledger directory.[IEX] TOKEN = <your publishable IEX API token here>
- Alternatively, set the
IEX_TOKEN
environment variable.
export IEX_TOKEN=pk_deadbeefdeadbeefdeadbeefdeadbeef
- Alternatively, set the
-
Test
$ getquote GOOG 2020/08/30 09:56:54-0400 GOOG $1644.41
pip install --upgrade twine
./setup.py sdist
twine upload dist/getquote-*.tar.gz