Skip to main content

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acdumo-1.0.22.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acdumo-1.0.22-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file acdumo-1.0.22.tar.gz.

File metadata

  • Download URL: acdumo-1.0.22.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for acdumo-1.0.22.tar.gz
Algorithm Hash digest
SHA256 65f1cf743fe9fb924242a8f91b13113518dcd469789e08fb0e8c467f21c7cac9
MD5 3f6eac936d7e1a18a54e8c17d5407e98
BLAKE2b-256 ca18a2bb626dea3d5deb7292d457736976b5c20eb4678551d8599e1fd6297132

See more details on using hashes here.

File details

Details for the file acdumo-1.0.22-py3-none-any.whl.

File metadata

  • Download URL: acdumo-1.0.22-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for acdumo-1.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 3c30150a169bff5c3945222fb1455415be738e3fa81b683ad86cefadec0b0a49
MD5 e66cf58085c0b2de3cff685dab71b23d
BLAKE2b-256 8f048bc568434e566d191a192f1e7e589a0a6cecb9d3a445fa0a96b87c063e55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page