- Java 11
- Quarkus (the Supersonic Subatomic Java Framework: https://quarkus.io/)
- OpenFeign
- OpenCsv
- Lombok
- Install the latest jar of the project: https://github.com/crackCodeLogn/twm-artifactory, using
mvn clean install
- Generate jar of current project using
mvn clean install
- Before starting the app, define a
holdings.csv
file insidetwm-mkt-eq-service/landing
, which would contain the stocks you are holding in CSV format (below is tabular only for clarity):
symbol | qty | buy_price |
---|---|---|
HDFCBANK | 11 | 1520 |
SBIN | 15 | 430.75 |
- Set a variable in your system for
TWM_HOME_PARENT
, which defines a project structure defined in thetwm-mkt-eq-service/bin/twm-mkt-eq-service.sh
- Make sure you have java configured.
- Indian market only. This also considers the EMH - Efficient Market Hypothesis, which assumes that the stock price on NSE and BSE are the same.
- Start
./twm-mkt-eq-service.sh <provide-pnL-calculation-interval-here-in-seconds>
from terminal
- Ctrl + C the terminal where the twm-mkt-eq-service jar is running.
Based on the sample selected above, below is the output for the run:-