A script to find odd lots arbitrage opportunities by scanning SEC filings.
- Install python and the required dependencies
- Change the constants in
oddlots.py
to run the scriptSEC_USER_AGENT
is a custom user agent. See https://www.sec.gov/os/webmaster-faq#developers for further details.TMP_FOLDER_NAME
is the path of the folder where the filings will be downloaded to. The script auto-deletes the folder each run.DISCORD_WEBHOOK_URL
is the webhook url of the channel to send the messages to if any odd lots filings are found.
python oddlots.py
to run the script. As it checks the filings of the previous day, it is advised to run it in an automated cronjob to check for all filings from yesterday.