acdumo
This app is a simple implementation of the Accelerated Dual Momentum investment strategy. It queries a Yahoo Finance API for historical ticker price data, calculates ADM statistics, and suggests a strategy.
Installation (command line)
For simple command line use of this app, you can install with pip:
pip3 install acdumo
or
pip3 install --user acdumo
Installation will require an extra step on macOS systems. Run the included acdumo-install-certifi command.
acdumo-install-certifi
Usage (command line)
To generate a report for the current date, simply run:
acdumo
Optional arguments can be used to generate reports for different dates or tickers:
acdumo --help
usage: acdumo [-h] [--date <yyyy-mm-dd>] [--tickers <TIC> [<TIC> ...]] [--bonds <TIC>] [--frequency {monthly,weekly}] [<path/to/report/dir/>]
Accelerated dual momentum
positional arguments:
<path/to/report/dir/>
write a HTML report
optional arguments:
-h, --help show this help message and exit
--date <yyyy-mm-dd> date of interest (default: today)
--tickers <TIC> [<TIC> ...]
tickers to use (default: SPY TLT VSS SCZ)
--bonds <TIC> ticker representing bonds (default: TLT)
--frequency {monthly,weekly}
frequency of data to fetch (default: monthly)
Installation (full app)
To run the app locally, use the following procedure. By default it is configured to use a gmail account of your choice for account confirmation emails. The gmail account must be configured to allow less secure apps.
git clone https://github.com/anthony-aylward/acdumo.git
cd acdumo
python3 -m venv venv
source venv/bin/activate
pip3 install -e . # if on macOS, also run: python3 acdumo/install_certifi.py
export FLASK_APP=acdumo
export FLASK_ENV=development
mkdir -p instance/protected
python3 config/__init__.py --email <gmail address> instance/
flask db upgrade
flask run
You can then use a web browser to navigate to the app (by default at localhost:5000)
Release files for acdumo 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| acdumo-1.1.2.tar.gz | 18.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acdumo-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.4 kB
Release files / acdumo-1.1.2.tar.gz
| Download URL | acdumo-1.1.2.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
610b10ef493d91752474dbd1b0f001055bbc211c080e73bd749a84d84591c659
|
|
BLAKE2b-256 checksum How to use checksums |
5f47a151eb5bcece29281a75c032d958b45adb3824ab0e6c5f348c70f63df02b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / acdumo-1.1.2-py3-none-any.whl
| Download URL | acdumo-1.1.2-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01a92bc4e9d3087812b13929527f69fb4a2f00c33377e1f1a69bf4f1065a3298
|
|
BLAKE2b-256 checksum How to use checksums |
35f5086d3a0ae7e7cfe13cba91eeb2f0133e5aa8336172af8a1ad28db37ce2c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|