Giter VIP home page Giter VIP logo

insider-trading's Introduction

Insider-Trading

This program extracts insider trading data from the sec website and stores it in excel file for the specified time frame.

How to run:

python3 'insider trading.py'

Enter a ticker (ex: 'AAPL, MSFT') or type 'all' to search thru all the tickers in file:
Here you can enter either single ticker or separate multiple tickers by comma or type 'all' to go thru all the tickers in fName = 'ticker and cik.csv' (default name)

Enter the starting date (Ex: 2020-MM-DD):

Would you like to extract data to excel file (Press enter for no OR enter filename):
Here either enter file name or press enter if you don't want to save the data. By default the program doesn't display any data on shell, but you can add print(all_df) or print(symbol_df) to print the data

Sample run

Enter a ticker (ex: 'AAPL, MSFT') or type 'all' to search thru all the tickers in file: aapl, msft, amzn, fb, v
Enter the starting date (Ex: 2020-MM-DD): 2020-05-05
Would you like to extract data to excel file (Press enter for no OR enter filename): five

Finished extracting AAPL insider data from 2020-05-05 till 2021-01-07.
Finished: 1/5 symbols.
Finished extracting MSFT insider data from 2020-05-05 till 2021-01-07.
Finished: 2/5 symbols.
Finished extracting AMZN insider data from 2020-05-05 till 2021-01-07.
Finished: 3/5 symbols.
Finished extracting FB insider data from 2020-05-05 till 2021-01-07.
Finished: 4/5 symbols.
Finished extracting V insider data from 2020-05-05 till 2021-01-07.
Finished: 5/5 symbols.
Extracted the data to five.xlsx

Transaction type

P - Open market or private purchase of non-derivative or derivative security
S - Open market or private sale of non-derivative or derivative security

ticker and cik.csv source: https://www.sec.gov/include/ticker.txt
Transaction types: https://www.sec.gov/opa/column-descriptions.html

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

insider-trading's People

Contributors

asad70 avatar mb-finski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.