Getting information from Yahoo! finance - yahoo-finance

I'm trying to get data about currency exchange from Yahoo! finance in the csv format.
E.g. there is a lot of information in this page, but when I'm downloading csv file over the url there is no such data as Change, Bid, Ask, Prev Close, Open, etc. There is "N/A" values instead them.
How can I get complete information from relevant page?

I suggest that you use Yql. This thread provides an example: Help creating a YQL Query to search companies

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 finally dead? Using ichart GET call?

It looks like the party is over with regard to historical data from the Yahoo Finance API. I've followed previous answers and nothing is working. The previous code was of the format:
http://ichart.yahoo.com/table.csv?s=AAPL
and even https.
https://ichart.yahoo.com/table.csv?s=AAPL
None of these resolve in browser or can be requested. For historical data is there any API in existence for Yahoo Finance? It's possible to get current data points with the following calls:
http://finance.yahoo.com/d/quotes.csv?s=AAPL&f=e
However no history. Any suggestions or functioning work around?
Try the spreadsheets here:
Bulk Yahoo historical stock quote downloader
Historical stock prices from Yahoo
Yahoo finance now uses a cookie-crumb pair. The VBA in the spreadsheets
gets the cookie-crumb pair from Yahoo for a junk call
uses the cookie-crumb pair to download historical data
uses the cookie-crumb pair to download historical data.
The first spreadsheet lets you download bulk data. The second spreadsheet contains a wrapper function that converts old Yahoo Finance API calls to a format that still works
The VBA is more involved (not a clean API call anymore), and Yahoo may shut off this route without notice. But, for now, you can still get historical data.

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.

Labview to google spreadsheet information transfer

I have been using LabVIEW to collect measurement data, and I would like to know if it is possible for LabVIEW to communicate the results to a Google Spreadsheet. If so, where could I find resources to learn how to make LabVIEW transmit information to the Google Spreadsheet ?
Thanks!
EDIT AND FOLLOW-UP- I used Jonathan's suggestion below and experimented with the LabVIEW http Post.vi. It's very simple, all you need to do is enter the URL of the Google form (replacing the final "viewform" with "formResponse") and a string with the data you want to enter (with rough syntax = ). A big thanks for that answer, it was really helpful !
However, when I try to use this method for a Google form with more than one page, the data isn't read properly... The form is still sent but every field not present on the first page of the form remains blank on the Spreadsheet. I feel that this is somehow linked to the fact that in the Google form, the URL of all the pages after page 1 are the URL of page 1 with the final "viewform" replaced with "formResponse". Is this what is causing the error or is it something else altogether, and how can I fix it ?
I can think of two ways to do this:
You can create a form in google spreadsheets. The form appears as an html document with standard tags. From here, I would use labview's http functionality to submit data to that form using a POST request. This would be the easiest way to get data in there.
Using the Google Apps API, you can manipulate google spreadsheets and dump data in there directly. This is going to be more complicated in terms of development time, but more configurable in the long run. https://developers.google.com/google-apps/spreadsheets/#what_can_this_api_do There are .net and java code examples throughout the documentation, so it would take some work to port this to LabVIEW, but it could be done.

How can I obtain a sampling of all tweets from a specific time period?

I want to gather samplings of all tweets from the past year. Being able to request tweets from a specific date would be great, but I'll take what I can get.
I do not want to find tweets by a specific user or containing a specific term, just a sampling of all tweets. The Twitter search API claims that a query term is optional, but if I try an empty query like
http://search.twitter.com/search.atom
as opposed to giving a search term,
http://search.twitter.com/search.atom?q=twitter
the response is
<hash>
<error>
You must enter a query.
</error>
</hash>
If the API really doesn't provide any functionality for this type of query, how can I hack around it? Are tweet ids roughly sequential by date and can I somehow use this info to grab bunches of tweets centered around an id of a tweet whose date I know?
You are referencing the obsolete documentation. If you read the current version you will find that a query is required.
You should also know that the Search API only provides results going back about two weeks. You might be able to find historical data from sites like infochimps.
Not useful for historical data, but in case someone stumbles across this question looking for a sampling of all current tweets, you want the streaming API. (This is my first foray into Twitter and I hadn't noticed it. I only saw the public timeline method in the normal API.)

Resources