{"repo":"shivamsouravjha/stock-backend","free":true,"listed":false,"github":"https://github.com/shivamsouravjha/stock-backend","clone":"git clone https://github.com/shivamsouravjha/stock-backend.git","description":null,"language":"Go","stars":41,"topics":["hacktoberfest","go","golang","stock-analysis","stock-market","hacktoberfest2024"],"license":null,"category":"analytics","readme_excerpt":"Stock Analysis API This project is an API built using the Gin framework for analyzing stock data. It processes Excel files, fetches stock data, calculates various stock metrics, and compares them with peer companies to derive useful insights. Features - Upload Excel files to parse and analyze stock data. - Analyze stock performance by comparing with peers. - Fetch detailed financial data from external sources. - Calculate a rating score for stocks based on various parameters. - Implements a robust system to handle stock trend analysis, pros and cons evaluation, and peer comparison. - Supports MongoDB for data storage and querying. - Graceful shutdown and CORS middleware for stability and security. Requirements - Go 1.18+ - MongoDB - Gin Framework - goquery - Excelize Setup 1. Clone the repository: 2. Install Go dependencies: 3. Set environment variables for MongoDB: 4. Run the API: The API will run on localhost:4000 . Endpoints Upload Stock Excel Data - Endpoint: /api/uploadXlsx - Method: POST - Description: Upload one or more Excel files to parse stock data. Request: Upload Excel files through form data. Response: Returns parsed stock data along with calculated metrics in JSON format. Example cURL: Sample Stock Analysis Flow 1. Upload XLSX file : The file is parsed to extract stock information. 2. Stock Processing : Stock data is fetched from MongoDB or external APIs. 3. Comparison : Each stock is compared with its peers based on various financial parameters (e.g., PE, marke","default_branch":null,"files":null,"tree":[],"storefront":"/r/shivamsouravjha","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shivamsouravjha/stock-backend/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}