This project is a RESTful API designed for managing and tracking stock portfolios. It allows users to add, update, delete, and view stocks in their portfolio, calculate performance metrics, and search stocks by various criteria.
- Add, update, delete, and view stocks.
- Calculate performance metrics like ROI.
- Search functionality by industry sector and performance.
- Java 17
- Spring Boot
- Maven
- JUnit for testing
- Clone the repository:
- Navigate to the project directory:
- Run the application using Maven:
To add a stock to your portfolio, send a POST request to /api/stocks
with the stock data in the request body.
Example Request: POST /api/stocks { "name": "ABC Corp", "ticker": "ABC", "industry": "Technology", "purchasePrice": 100.00, "quantity": 10 }
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
TBC
If you have any questions, feel free to contact me at [email protected].