Skip to content

Commit

Permalink
update readme and symbol list
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesonhm committed Nov 17, 2023
1 parent a27b1eb commit 96b6d74
Show file tree
Hide file tree
Showing 3 changed files with 1,006 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@ To run the container, use this docker command as a template;
docker run \
-it \
-v <path/to/appdata>:/invest_dash \
-p <host_port>:9090
jamesonhm/invest_dash:latest
```

## How it Works:

Updater
- runs weekdaily on an apscheduler background task
- runs week-daily on an apscheduler background task
- iterate over a slice of a list of stock symbols
- polls the yahoo finance api to get the close price for the current symbol
- Calculates Smoothed Rate of Change for each symbol and stores this with TS in the DB
- Calculates Smoothed Rate of Change for each symbol and stores this with TS in the local sqlite DB

App
- Returns top n list of symbols by momentum score
- symbol timeseries of score presented in chart
- Returns list of top n symbols by momentum score
- symbols' timeseries of score presented in chart

Frontend
- use HTMX
Expand Down
2 changes: 1 addition & 1 deletion backend/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


BASE_PATH = Path(__file__).resolve().cwd()
TICKER_PATH = BASE_PATH / "top_2300_symbols.csv"
TICKER_PATH = BASE_PATH / "top_1000_symbols.csv"

EVAL_DAYS = 90
QUERY_DAYS = int(((90 / 5) * 2) + EVAL_DAYS)
Expand Down
Loading

0 comments on commit 96b6d74

Please sign in to comment.