Jump to content

Recommended Posts

There was a guy named Benjamin Graham who was a pioneer of investing in the market. He has a formula that is still widely used today to find undervalued stocks. I would like to create a site that you simply enter the ticker symbol of a stock and it calculates the "value" for you.

 

You need expected 5 years growth, earnings per share, and aaa corporate bond yield. Yahoo finance has all these numbers readily available. Is it possible to write a program that would receive the ticker symbol then pull that data from yahoo and run it through the code? Or do I pretty much need my own DB of info on every stock out there?

Link to comment
https://forums.phpfreaks.com/topic/284897-pulling-data-from-another-website/
Share on other sites

I have not, I really did not have the slightest clue how you could accomplish something like this. I am on Yahoo's API site right now but they don't give an explanation to what it really is. Can you tell me real quick just a basic summary of what it is and how it works? 

 

I'd be very appreciative 

An "API" is an Application Programming Interface, and is used to provide all data that you need to do any task you wish (inside of the sites TOS) with data from that specific site.  Most sites provide one so that you don't eat up bandwidth by scraping the site, as API's generally only return the specified data that you need.

 

How an API returns data is pretty site specific.  Most return in a JSON, XML, or CSV format, but many can return in any format you wish.

 

Yahoo finance API code is listed at:

http://code.google.com/p/yahoo-finance-managed/wiki/YahooFinanceAPIs

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.