This is a web application built using Streamlit that processes multiple CSV files related to insider trading data, specifically focusing on transactions involving promoters and promoter groups. The app analyzes the data, displays the top companies involved in buying/selling, and allows users to download the processed data.
- Multiple File Upload: Users can upload multiple CSV files at once, and the app will integrate the data for analysis.
- Data Processing: The app processes the CSV files, filters relevant data (e.g., Equity Shares, Market Sale/Purchase), and calculates the quantity traded based on buying and selling transactions.
- Top 15 Companies Visualization: Users can view the top 15 companies involved in buying/selling through a bar chart.
- Download Processed Data: Users can download the processed data as a CSV file.
Make sure you have the following installed:
- Python 3.x
- Streamlit
- Pandas
- Matplotlib
you can download insider_trading.csv file from website - https://www.nseindia.com/companies-listing/corporate-filings-insider-trading or we have an example csv file also in our repo you can use it for example purpose.
-
Clone the repository:
git clone <repository-url> cd <repository-folder>
-
Install required dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run insider_trading_data_analysis.py
-
Access the app:
Open your browser and go to
http://localhost:8501/
.
The uploaded CSV files must contain the following columns:
COMPANY \n
CATEGORY OF PERSON \n
TYPE OF SECURITY (PRIOR) \n
MODE OF ACQUISITION \n
VALUE OF SECURITY (ACQUIRED/DISPLOSED) \n
ACQUISITION/DISPOSAL TRANSACTION TYPE \n
- Upload CSV Files: Use the file uploader to select multiple CSV files.
- View Integrated Data: The app will display the integrated data from all the uploaded files.
- Top 15 Companies Analysis: Click the button to view a bar chart of the top 15 companies involved in buying and selling transactions.
- Download Processed Data: Click the download button to get the processed data as a CSV file.
├── insider_trading.py # Main Streamlit app file
├── requirements.txt # List of required Python packages
├── README.md # Project documentation
└── .gitignore # Git ignore file
COMPANY NAME | QUANTITY TRADED |
---|---|
XYZ Ltd | 12,00,000 |
ABC Ltd | 80,00,00 |
XYZ Ltd | -2,00,000 |
- Thanks to Streamlit for providing a simple and powerful framework for building web apps.
- Features: Summarizes the app's main functionalities.
- CSV File Requirements: Lists the necessary columns for the CSV files.
- Installation: Provides step-by-step instructions for setting up and running the app.
- Usage: Explains how to interact with the app.
- File Structure: Shows the structure of the project files.
- Example CSV Data: Provides an example of the data expected in the CSV files.
- License: Mentions the license type.