yql to pull information on all stocks price - yql

I am building program to find out top 10(N) stocks based on open/close price change but so far I only found that i have to provide symbol to pull stock info. Is there a more generic yql to pull info about all stocks?

Related

yahoo finance stock price NSE,BSE rest-api

Am trying to create a program that fetches data from yahoo finance all stock data.
I found one rest API that gives me a stock price but I have to pass two parameters ex. if I have to get Apple stock price I have to pass Apple and stock name but I want all stock data so how do I get ??
can anyone help me thanks in advance
Unfortunately there isn't any official source of tickers or method of getting them.
You can use this script link to download tickers but as creator mentioned:
it is not possible to get all the symbols due to limitations set by
Yahoo. About 75%-90% of all symbols are gathered using this script
depending on type.
And it also downloads some no longer existing or inaccessible tickers.
From this site link you can download list of almost all tickers but about 30% of tickers are either in wrong category or aren't working. Checking whether ticker exists is easy because when API returns no data then we can deduce that ticker is incorrect. But checking if category is appropriate is a bit more complicated.
I've filtered tickers from the second site but only ETFs and Mutual Funds, you can find them on my GitHub. Those files contain about 99% of ETFs and Mututal Funds avaiable on Yahoo. I might consider filtering stocks later and then I'll upload them with script too. Be aware that filtering tickers is impossible on one run without for example VPN because Yahoo limits request to about 10k-20k per day and there are about 20k tickers per category and checking each ticker requires 2 requests.
Try with IEX api, it's free, and it provides very complete data, a very simple implementation and a very neat documentation
if yu want AAPL real-time price you just have to request
https://api.iextrading.com/1.0/stock/aapl/price
Here's complete documentation
https://iextrading.com/developer/docs
I was searching for a solution to a similar question for a long time. and at last, I got a solution to my problem.
there's a library in python that does this for you!
All you have to is pass the right symbol for the stock (for ex: the symbol of Infosys is INFY)
Here's the link to the documentation of the library
Dynamic Stock prices :
https://nsetools.readthedocs.io/en/latest/
Historical Stock Data :
https://nsepy.readthedocs.io/en/latest/
I hope this helps! All the best

Yahoo Finance APIs - For Different Stock Exchange

I actually want to know that whether i can use the Yahoo Finance API to get the data from a specific Stock Exchange. I tried to find the answer and looked through the YQL guide but they didn't mention that how can I specify the stock exchange to get the current share price.
For example I want to know the share price of a company from Australian Stock Exchange and then I want to know another share price of a different company from NewYork Stock Exchange.
Any help is much appreciated.
Thanks
For LSE (London Stock Exchange), all the symbols are just appended with '.L'.
It seems the Australian Stock Exchange is '.AX' (I got the info from this page: https://help.yahoo.com/kb/SLN2310.html )

Retrieving business summaries using YQL

I'm working on a project where I need to collect information about companies from various sources, one of which is Yahoo Finance. It seems like YQL is the best way to get this information from Yahoo.
I'm able to retrieve stock quotes with a query like
select * from pm.finance where symbol="GE"
and relevant Yahoo articles with a query like
select * from pm.finance.articles where symbol="GE"
I need to retrieve summaries of businesses as well, similar to the information included on this page, but can't figure out which table to query. Is there a YQL query that will return this information?
The biz.yahoo.com domain has been deprecated. As far as I can tell, this data is no longer available, neither through YQL nor Yahoo Finance.

Adwords API report, what is AutomaticContent and Content?

Pulling a report from the Adwords API. Trying to list out keywords ranked by impression.
Two 'keywords', AutomaticContent and Content appear in the list a few times. What are these? We are not running ads on those keywords so I assume Google is inserting them to mean something.
This is the AWQL we are using:
SELECT+Criteria,Impressions+FROM+KEYWORDS_PERFORMANCE_REPORT+where+Impressions>0

Interactive Brokers Symbol list

I want to use the IB Api, but cannot figure our how the request a complete symbol list and information.
In the Documentation i found: reqScannerParameters() - but it is not clear how to get a list for example of nasdaq stocks ?
Is there a better way ?
As far as I am aware IB does not offer a symbol list. But the good news is it is easy and free to get elsewhere. Eoddata.com is a good source of it and you can download them, or automate it rather easily.
Go here and just click the download link at the top right of the table: EodData Symbol List
Not sure what language your using for the IB API but I have simple tutorial in C# that covers reading the tickers for stocks and options on my website: Get Real-Time Stock Data from the Interactive Brokers API
It is fairly easy to implement a piece of code scraping all stocks symbol from IB's website.
NYSE stocks are available from IB website
Just replace 'nyse' with another exchange's name like nasdaq or amex.
If you go to their products listing you can drill down to find lists of the entire universe of products (in case the link expires, I just googled "IB Product Listings")
https://www.interactivebrokers.com/en/index.php?f=1563
For example, I went to their NYSE product and scrolled through a few pages to find everything I needed. Here's an example of what I found
https://www.interactivebrokers.com/en/index.php?f=2222&exch=amex&showcategories=STK&p=&cc=&limit=100&page=3

Resources