I would like to make an program that acts like a big filter for stocks. To do so, I need to have real-time (or delayed) quotes from the market. I started getting stock quotes by requesting pages from yahoo, accordingand parsing the html to the ticker, and parsing the html. I was wondering how to do this requesting and parsing html. Is there some way I can request only the stock quotes and its info? I know some applications do this, and I am very curious how they do it, because requesting web pages and parsing them is very time-consuming.
Thanks, Dave
You can access Real-Time Quotes from anywhere on the Fidelity.com website. Quotes are available for stocks, mutual funds, Fidelity Select Portfolios ®, indexes, options, bonds, and annuities. Just enter the stock's symbol in the search field or you can look up stocks by company name.
The Investing API (provided by APIDojo) allows developers to access stock data for cryptocurrencies and markets. This API is ideal for tracking price changes and exchange rates.
Many financial networks, websites, and apps provide delayed quotes, which show where a stock or currency stood 15 or 20 minutes ago. Delayed quotes are usually enough information for a casual investor who isn't looking to time the market.
Parsing the output of the webpage is a chump's game. It is always changing and unless you're willing to heavily invest in some sort of very resilient parser you're going to spend your life twiddling with it. Use a web service, google offers one http://googleblog.blogspot.com/2007/01/real-time-quotes-for-free.html
You can get csv data from yahoo.
This page has more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With