Table of Contents
pip install insidertrading
insidertrading
is distributed under the terms of the MIT license.
This package chooses the largest dollar transactions in the SEC form345 file and reports transactions where the stock price rose, in case of an acquisition, or fell, in case of a disposal, over a certain percentage during the following week.
THIS DOES NOT CLAIM THAT ANY OF THESE TRANSACTIONS ARE ILLEGAL.
It merely reports that the stock moved by some threshold after the transaction. It could be because of personal reasons, coincidence, because the stock is unusually volatile, or some other innocuous reason.
If you do not provide a --yq argument, the command determines the last quarter from the current date and uses that
if you do not provide an --insiderdb argument, the sqlite3 database is created in RAM.
usage: edgarinsidertrading [-h] [--yq YQ] [--threshold THRESHOLD] [--interval INTERVAL] [--insiderdb INSIDERDB] [--directory DIRECTORY] [--file FILE]
report possibly illegal insider trading
options: -h, --help show this help message and exit --yq YQ year quarter in form YYYYQ[1-4] --threshold THRESHOLD stock price change threshold - 0-50 --interval INTERVAL number of days to consider for price movements 1-14 --insiderdb INSIDERDB full path to the sqlite3 database - default in memory --directory DIRECTORY directory to store the output --file FILE csv file to store the output - default stdout