Jarloo

Menu

Get near Real-Time Stock Data From Yahoo Finance

Yahoo’s YQL API gives you access to a huge number of stocks and tons of great data for each.

Download Code

Here is a list of the data available:

EPS

  • Earnings Per Share
  • EPS Estimate for the Current Year
  • EPS Estimate for Next Year
  • EPS Estimate for Next Quarter
  • Price EPS Estimate for the Current Year
  • Price EPS Estimate for Next Year

Price Fields

  • Last Trade Price
  • Bid Price
  • Ask Price
  • Open Price
  • Previous Close
  • Change Percent
  • Change Amount
  • Daily Low
  • Daily High
  • Yearly Low
  • Yearly High
  • Change from Yearly Low
  • Change from Yearly High
  • Change In Percent
  • Percent Change from Yearly Low
  • Percent Change from Yearly High

Volume Fields

  • Volume
  • Average Daily Volume

Dividends Fields

  • Dividend Per Share
  • Dividend Yield
  • Dividend Pay Date
  • Ex Dividend Date

Moving Average Fields

  • 50 Day Moving Average
  • 200 Day Moving Average
  • Percent Change from 200 Day Moving Average

Ratio Fields

  • PEG Ratio
  • Short Ratio
  • PE Ratio

General Stock Info

  • Name
  • Symbol
  • Book Value
  • Stock Exchange
  • Last Update
  • Market Capitalization
  • EBITDA
  • Last Trade Date
  • Price Of Sales
  • Price Of Book
  • One Year Price Target

This Yahoo Stock API is completely REST based so you can call it from anywhere, your phone, desktop whatever you like. Also being REST based means it works great with C#.

I’ve created a c# YahooStockEngine class that you can give a list of equities and it will return all the data listed above in a C# class with all those properties.
The code is very easy to understand, and really doesn’t do much but map XML to a C# class, but is very useful if your working with stocks.

I’ve included a small client called CardStock. This client is WPF and uses Model-View-ViewModel (MVVM) and displays a list of equities that it pulled from the Yahoo Finance API using YQL and REST.

 

Categories:   Code, Finance

Comments

Sorry, comments are closed for this item.