-2

I am using yahoos stock api to pull information for my java application, I can pull high and low using

URL yahoofinance = new URL("http://finance.yahoo.com/d/quotes.csv?s=" + 
        stocks[0] + "+" + stocks[1] + "&f=hg");

I figure that f=hg is for high and low of the stock but how could I pull P/E and other key metrics necessary for analytics?

Hovercraft Full Of Eels
  • 283,665
  • 25
  • 256
  • 373
CHouse95
  • 111
  • 8
  • Other thigs I am looking for is sector and average sector p/e and other things similar to that like 200 day moving average – CHouse95 Jan 01 '17 at 04:27

1 Answers1

0

f=r will give you the P/E ratio and f=m4 will give you the 200 day moving average.

helpful reference: http://www.jarloo.com/yahoo_finance/

wannabe
  • 131
  • 1
  • 2
  • 8