A backend project to analyse data from the National Stock Exchange, to provide fundamental TA and recommendations on trade, with possibility to prepare and train models to predict stock trend.
Based on nsedt module by pratik141
Following table highlights the available endpoints, their details and examples.
Base URL for the service is as follows :-
https://nse-analyser.onrender.com/
Endpoint details are as follows
Endpoint | Request Type | Parameters | Description | Example |
---|---|---|---|---|
/health | GET | N/A | Tells if the service is running | https://nse-analyser.onrender.com/health |
/getStockData?start_date=yyyy-mm-dd&end_date=yyyy-mm-dd&symbol=xxx | GET | start_date, end_date, symbol | Fetch Historic OHLCV data for a stock from NSE, based on start and end date and stock code | https://nse-analyser.onrender.com/getStockData?start_date=2023-06-02&end_date=2024-01-01&symbol=ITC |
/getStockTaData?start_date=yyyy-mm-dd&end_date=yyyy-mm-dd&symbol=xxx | GET | start_date, end_date, symbol | Fetch calculated TA data for a stock from NSE, based on start and end date and stock code | https://nse-analyser.onrender.com/getStocTaData?start_date=2023-06-02&end_date=2024-01-01&symbol=ITC |
/taConfigParams | GET | N/A | Fetch the config values that will be used to calculate TA data | https://nse-analyser.onrender.com/taConfigParams |
/taConfigParams | POST | JSON fetched from the above request with updated values as payload | Update the config values that will be used to calculate TA data | https://nse-analyser.onrender.com/taConfigParams |
/generateTaResult?symbolList=s1,s2 | GET | A comma seperated list of Stocks for analysis sent as query parameter | View the ta results for the stocks, along with interesting datapoints highlighted | https://nse-analyser.onrender.com/generateTaResult?symbolList=ITC,HCLTECH |
- Automatically persist historic data in CSV format, available for personal use out of the service too.
- Provides TA data for following :
- Close
- Close EMA
- Volume
- Volume EMA
- % deviation b/n actual volume and average
- MACD
- MACD Signal
- RSI
- Best fit regression channel data
- Automatically analyse TA data and provide a comprehensive view of trend reversals and interesting events in a trade history
Install python on your system and run following commands in root directory
pip install -r requirements.txt
python app.py