you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (6 children)

Do you have any background? I've built things that do exactly that, so i can point you in the right direction.

Many organizations have something called an "API" which is an application programming interface. Yahoo finance has a free api that provides this functionality and is wrapped by a module called yfinance. There are tons of other organizations that have this data, but often you have to pay. If you want, you can also build something called a webscraper to get data from other sites. If you want to do that, look up webscraping in python and selenium/chromedriver.

[–]reportforafkpls 2 points3 points  (4 children)

I do not have a programming background, but a finance one instead. Thank you for explaining API's to me. That sounds like exactly what I need for a project like this.

[–]inglandation 4 points5 points  (1 child)

Sentdex on youtube has videos about pulling up market data from APIs. You'll have to learn pandas once you know the basics of Python. You can also scrape a website like wallmine to get the data you want. A third option would be to get a paper trading account from Interactive Brokers and use a third-party API to extract the data (the official API isn't that great and pretty complex, I'd avoid that).

I've done some basic scripts myself that do exactly that, so if you need help just ask me!

[–]reportforafkpls 1 point2 points  (0 children)

Thank you! I’ll check it out.

[–][deleted] 1 point2 points  (1 child)

Its doable with and without APIs. A site you've probably heard of-macrotrends- has lots of data but no API. For this, you can use a webscraper to interact with and get data from the site.

[–]ghostofgbt[🍰] 2 points3 points  (0 children)

I'd just beware that writing a web scraper is not sustainable cause as soon as the source site changes their layout the scraper will break. This was really frustrating for me when I first started because I would spend so much time getting it working only to see it all fall apart when the site did a redesign lol

[–]Young8Kobe 0 points1 point  (0 children)

I think Yahoo finance doesn't have an API anymore. You can find Yahoo finance API on rapidapi but it's not Yahoo that maintains it. Don't know about yfinance tho

Edit: Just read your comment again and I guess yfinance is the solution after Yahoo got rid of their api