Im currently working on a personal project that basically creates a bunch of random stock portfolios and goes through them to pick the best one. I am fairly new to Java, so I'm sorry in advance if this is a trivial question.
Basically, the way I am currently set up is that I have a method that creates a random string of letters size 1-5, and then searches for the random string on a site like market watch to see if any results show up.
However, I was wondering if a more efficient implementation would to just upload an array/xml file with the tickers from publicly traded companies from most major stock exchanges, which would put me in like the 8,000+ criteria. I could also downsize and only work with stock in the NYSE, but that would still be working with like 1,900 values. I'll be looking up these tickers on Marketwatch as well. I am also open to any better suggestions, since I doubt either of these are very efficient implementations.
I also only need to generate, say around 100 random stock tickers for my project.
Thank you so much!!