Alternative to yahoo finance api - yahoo-finance

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.

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 API changes (2017)

Requesting data from Yahoo Finance seems to have changed or is now blocked. The request below for commodity data no longer works as of May 2017. Does anyone know if there is a new way to make this request?
http://chartapi.finance.yahoo.com/instrument/1.0/GCQ17.CMX/chartdata;type=quote;range=10d/csv/
First, the old Yahoo finance iChart download is gone for good. In one of the forum posts, a Yahoo employee has confirmed that the free EOD data has been terminated, and will not be reintroduced. Check out this thread and look for reply from Nixon. Yahoo is recently acquired by Verizon, and it must be the new direction.
However, if you check the Yahoo financial page, the CSV download link works, though differently now. It is through a new API that uses an authentication token "crumb" that is linked to a cookie when you access the page.
So there is a work-around to get the same CSV download as before through this new API. I have put together some quick Python3 code. Please check out GitHub for source code yahoo_quote_download.
As Ashley Davis mentioned in the comments section of the question above, the new way to go is through Alpha Vantage, at least when one is looking for free historical data. Their web service is very well documented and straight forward.
For those of you who are looking to import the data into Excel, I have written an api that I make available for free. Here is the Excel spreadsheet
Addendum as of Aug 2018: Current version of Deriscope supports retrieval of both historical data and live feeds from YF.
For Australian investors, here is an alternative to yahoo finance api:
www.biglion.com.au

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 )

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.

business listing search apis

I would like to include local business address/phone numbers into my site.
Does anyone have thoughts on using google local search api vs. twitter's geo api vs. purchasing a directory listing?
Mainly depends on your site and needs (real time, offline..).
Google local gives very good results, the best from my experience (compared to other apis).You should check the terms of service of each service. If I remember correctly, google doesn't allow using it's local api if you site charges users for money.
Also, I think google TOS limits you to client side usage, but you should read the TOS to see if it's true.
Haven't tried the twitter geo api too much, but I remember it didn't fit my needs.
Purchasing a directory listing is not cheap. Again, depends on your needs; do you need US business listings? World wide? If you want US businesses, the leading companies for purchasing a DB of listings are: localeze, infousa, acxiom.
Besides Google Local Search (which actually has been deprecated), there's now SimpleGeo Places, which is free for low volume use and without restrictive terms of service. I don't work for them.
Could also use the Google Places API (which has not been deprecated) using the instructions here.

Resources