Initial public release

This commit is contained in:
kwyvern-gitea
2026-10-15 07:52:23 -07:00
commit f61511fa93
14 changed files with 2294 additions and 0 deletions
+85
View File
@@ -0,0 +1,85 @@
# Multifactor Scanner 3
Multifactor Scanner 3 is an old multifactor equity-screening project. Originated before 2020.
This is the third rewrite (hence the 3), and was handcrafted before AI agents, then cleaned up with agents around 2024.
This README and the repository packaging are later additions.
## What the scanner does
The scanner screens equities through factor analysis. It retrieves EOD Historical Data fundamentals and compiles the results into CSV files.
The design covers momentum, size, value, quality, volatility, yield, growth, liquidity, and regional macroeconomic inputs.
## Requirements
- Python 3.9
- Everything in `requirements.txt`
- An EOD Historical Data API token
The legacy `run_scanner.bat` launcher expects a Conda environment named `kwpf`. The direct Python command below does not require that environment name.
## Setup
1. Create a project virtual environment.
```powershell
py -3.9 -m venv .venv
```
2. Install the dependencies.
```powershell
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
```
3. Create the local risk-free-rate working file.
```powershell
Copy-Item .\parameters\riskfree_rate_template.csv .\riskfree_rate.csv
```
4. Save only the EOD Historical Data token in `licenseFile.key`.
```powershell
Set-Content -NoNewline .\licenseFile.key 'YOUR_EODHD_API_TOKEN'
```
The scanner can update `riskfree_rate.csv` during a run.
## Configuration
Edit the files in `parameters/` before a run:
- `index_inclusion.txt` lists the index or ETF tickers that supply constituents.
- `parent_index.txt` identifies the first benchmark ticker.
- `ticker_inclusion.txt` adds individual tickers.
- `ticker_exclusion.txt` removes individual tickers.
Place one ticker on each line. Include each exchange suffix, such as `.US` or `.TO`.
`regions_msci_codes.csv` maps each supported country to a regional proxy ticker. The scanner uses this mapping for regional benchmarking.
## Run the scanner
Run the scanner from the repository root:
```powershell
.\.venv\Scripts\python.exe .\run_scanner.py
```
## Generated files
The scanner writes the following:
- `output/YYYYMMDD.csv` contains the standardized final scores.
- `output/YYYYMMDDdump.csv` contains the unstandardized intermediate table.
- `output/rejected_tickers.txt` lists rejected tickers.
- `debug/*.json` contains selected API responses for failed calculations.
- `riskfree_rate.csv` stores the current rate data and provides fallback data.
## Important limitations
This repository preserves old code. The current vendor and source websites have changed since.
The sample contains historical market data. It is not a current ranking, recommendation, or investment result.