How can I create a YQL Query that will return me companies from Yahoo Finance?
select * from yahoo.finance.quotes where name like "apple"
Doesn't work.
How can I create a YQL Query that will return me companies from Yahoo Finance?
select * from yahoo.finance.quotes where name like "apple"
Doesn't work.
That won't work for many reasons. Please try:
select * from html where url="http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=snl1d1t1ohgdr"
To get exactly what you want, you could further filter with xpath in the where clause.
Instead of using XPATH I would rather recommend to use the build in CSV datatable and to do something like this:
select * from csv where url='http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=snl1d1t1ohgdr'
The problem with either approach is though that you need to know the stock symbol, so AAPL in this example. So neither my nor the other answer really fulfills your need in terms of being able to search for companies by name.
Don't have more input than this currently, sorry.