how to add more shares in the international market also

#2
by krravikiran - opened

kindly lets know how to add shares from NSE india or how to add additional shares

Hi krravikiran.
In order to add more stocks manually, you have to do the following:

  1. Add the the stock ticker and stock name in the dictionary "all_tickers" in the app.py file, and
  2. In the functions.py file, from line 348 up until 369, you must add 2 lines for each new stock you add, along with some parameters for the LSTM.

In order for this to work, the stocks that you want to add must

  1. be available in the "yfinance" python framework,
  2. the marketwatch.com must have more than 10-15 recent articles for the stock you want to add. If it doesn't the code cannot find news headlines to parse and it will return a ParsingError probably.
    You can use "try" and "catch" methods though.

Since this app is a simple demostration of what can be done (for a university mini project) it is not made for less "known" stocks with not many recent articles, and many things were hardcoded.

IoannisTr changed discussion status to closed

Sign up or log in to comment