All code for the project is available on Github: https://github.com/OpenSourceAP/CrossSection/
- Check out the code to understand how each signal is constructed
- If you find mistakes, please let us know by opening an issue
- If you want to provide code to construct additional signals, open a pull request to let us integrate it in the code base
- To build the data yourself, run
Signals/pyCode/master.py(signals), thenPortfolios/Code/master.R(portfolios). The code uses CRSP v2 (CIZ) data from WRDS. See the README for details.
In addition, we provide demo code to illustrate a few simple things one can do with the datasets that we provide: https://github.com/OpenSourceAP/CrossSectionDemos
- Each file is an independent script that automatically downloads data from the internet. OpenAP data come from our Hugging Face dataset through the OpenSourceAP.DownloadR package. No account is needed, except for the scripts that use CRSP data from WRDS.
- For instance, the plot_anomaly.R lets you plot an anomaly’s cumulative return together with sample end and publication dates:

Code releases
- Current release (v2.1.0): CRSP v2 (CIZ) migration, annual improvements
- Previous release (v2.0.0): Major Python signals translation update, annual improvements
- Previous release (v1.4.1): AnnouncementReturn lookahead bias patch
- Previous release (v1.4.0): Annual improvements
- Previous release (v1.3.0): New predictors, annual improvements
- Previous release (v1.2.0): New predictors, Fama-French style 2×3 portfolios
- Previous release (v1.1.0): Daily returns, more monthly implementations, completeness checks
- Previous release (v1.0.0): Major modularization update
- Older beta releases