Yahoo Finance APIs - For Different Stock Exchange - yql

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 )

Related

Alternative to yahoo finance api

I am new to yahoo finance api. I am also a beginner investor. I always use yahoo finance api to keep track of my investment portfolio. But it does not work recently due to yahoo stopping this service. Will you kindly share any alternatives for me? Thank you.
There are several alternatives, but I suppose you are looking for free services? One alternative is Quandl. There is a Database called "Wiki" that is free.
When I re-looked at this question now, I realised I have a solution for it.
I picked up python and found out about this yahoo finance library.
https://pypi.org/project/yahoofinancials/
You could use:
https://www.alphavantage.co/ which is free and offers plenty of possibilities
https://iexcloud.io/ which is also free
https://www.quandl.com/tools/api which is also free but offers more options (for some of them you need a subscription)
https://rapidapi.com/marketplace which offers free APIs (to get financial news, trading data, financial data,...)
Some webscraping tools and get data directly from yahoo finance
AssetMacro.com API provides free access to historical data for 120,000+ Financial Securities (Stocks, Bonds, Commodities, Currencies, Credit Default Swaps, Indices) and Macroeconomic Variables for 120 countries.

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

Twitter Search API for around 3 month data

I am working since last 3 days to find solution about how we can get old data from twitter api around 3 month over limitation of twitter api about 1 week. can some one help me to know best solution.
You cannot get any tweet for the last 3 months apart if you store them in your own database.
The only solution for you would be to pay Twitter GNIP to access historical data.
The Twitter API only provides the most recent tweets for a given search, up to ~3200.
The so-called "firehose" and some datasets are available mostly for research or developer purposes.
There are some services which sell custom datasets, including Twitter itself (which purchased Gnip). The overview by Justin Littman at GWU is rather comprehensive.

Yahoo Finance YQL query not working. Did something change?

For the past year I have been able to use Yahoo YQL Rest query to obtain the currency exchange rates; however, today it has stopped working for some odd reason.
https://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys#h=select+*+from+yahoo.finance.xchange+where+pair+in+(%22USDCAD%22)
https://query.yahooapis.com/v1/public/yql?format=json&q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22CADUSD%22%2C%20%22USDCAD%22%2C%20%22EURUSD%22%2C%20%22EURCAD%22%2C%20%22GBPUSD%22%2C%20%22GBPCAD%22)&diagnostics=false&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys
Has something changed? How can I find out what happened?
Is there an alternative solution I can use to obtain this data?
There seems to be an issue with http://datatables.org/ at the moment, which is the basis for the "Community Tables" (such as the Yahoo Finance table) on YQL. I haven't been able to find any more information on why it's down, but hopefully it comes back up soon.

Trying to get or set sales tax country in Quickbooks SDK

I'm using Quickbooks SDK v11 to integrate with a C# application. Almost everything works fine, but I have a problem with the sales tax country. I want to add customer records to Quickbooks, and I can't figure out how to do it.
To see what's in Quickbooks already, I'm using the following code snippet:
ICustomerRet ret = [My code to retrieve a customer];
ENSalesTaxCountry stc = (ENSalesTaxCountry)ret.SalesTaxCountry.GetValue();
This works fine for a UK customer, but if the customer has a sales tax country of France, the GetValue() call throws an Exception.
A poke around with Intellisense reveals that my ENSalesTaxCountry type only has three options: stcAustralia, stcCanada and stcUK - clearly excluding France.
It seems that the SDK enum supports only these three countries, while Quickbooks itself supports a whole bunch of others.
Any ideas for how to patch the SDK or otherwise get round the problem?
There's no need to rely on intellisense for documentation - you can use the IDN Onscreen Reference for a complete description of SDK queries and responses. You are obviously either using the Canadian or UK edition of QuickBooks, so be sure to check Allow CA or UK 2008+, then either CA or UK to indicate the edition you are using.
However, once you do this you will see that the only sales tax countries supported by the SDK are the Australia, the UK and Canada. In order to find out whether qbXML is returning France or other values that are undocumented, you can call the ToXmlString() method on you ICustomerRet interface. This will give you the raw qbXML. If the value "France" is there, you should be able to see it.
If you find that the qbXML is supporting undocumented countries, you can try including them in customer add requests, but you have to build the qbXML yourself and use the request processor component instead of QBFC to send the message.
You might be able to get more information about this by posting on in the Intuit Developer forums, where you will find dedicated forums for both UK and Canadian QuickBooks development. In fact there is an active discussion on sales tax countries in the UK forum right now, but you won't find it to be encouraging.

Resources