Business, webdev

Yahoo Finance (hidden) API

London vis a vis Finance
I was looking for long time after a way to get some finance data from sources like: google, yahoo etc’ without the need to parse long html pages. Than, a friend point me to some simple pipe that fetch this information. From there it was a short step to gain access to this nice (hidden) API was inevitable.

In a nutshell, if you want to get data on some stocks you can use this request:
http://finance.yahoo.com/d/quotes.csv?s=GE+PTR+MSFT&f=snd1l1yr

where some special tags:

a Ask a2 Average Daily Volume a5 Ask Size
b Bid b2 Ask (Real-time) b3 Bid (Real-time)
b4 Book Value b6 Bid Size c Change & Percent Change
c1 Change c3 Commission c6 Change (Real-time)
c8 After Hours Change (Real-time) d Dividend/Share d1 Last Trade Date
d2 Trade Date e Earnings/Share e1 Error Indication (returned for symbol changed / invalid)
e7 EPS Estimate Current Year e8 EPS Estimate Next Year e9 EPS Estimate Next Quarter
f6 Float Shares g Day’s Low h Day’s High
j 52-week Low k 52-week High g1 Holdings Gain Percent
g3 Annualized Gain g4 Holdings Gain g5 Holdings Gain Percent (Real-time)
g6 Holdings Gain (Real-time) i More Info i5 Order Book (Real-time)
j1 Market Capitalization j3 Market Cap (Real-time) j4 EBITDA
j5 Change From 52-week Low j6 Percent Change From 52-week Low k1 Last Trade (Real-time) With Time
k2 Change Percent (Real-time) k3 Last Trade Size k4 Change From 52-week High
k5 Percebt Change From 52-week High l Last Trade (With Time) l1 Last Trade (Price Only)
l2 High Limit l3 Low Limit m Day’s Range
m2 Day’s Range (Real-time) m3 50-day Moving Average m4 200-day Moving Average
m5 Change From 200-day Moving Average m6 Percent Change From 200-day Moving Average m7 Change From 50-day Moving Average
m8 Percent Change From 50-day Moving Average n Name n4 Notes
o Open p Previous Close p1 Price Paid
p2 Change in Percent p5 Price/Sales p6 Price/Book
q Ex-Dividend Date r P/E Ratio r1 Dividend Pay Date
r2 P/E Ratio (Real-time) r5 PEG Ratio r6 Price/EPS Estimate Current Year
r7 Price/EPS Estimate Next Year s Symbol s1 Shares Owned
s7 Short Ratio t1 Last Trade Time t6 Trade Links
t7 Ticker Trend t8 1 yr Target Price v Volume
v1 Holdings Value v7 Holdings Value (Real-time) w 52-week Range
w1 Day’s Value Change w4 Day’s Value Change (Real-time) x Stock Exchange
y Dividend Yield

Simple, right? 🙂

As for historical data you can use something like:

http://finance.yahoo.com/q/hp?s=WU&a=01&b=19&c=2010&d=01&e=19&f=2010&g=d

where the FROM date is: &a=01&b=10&c=2010
and the TO date is: &d=01&e=19&f=2010
You can also get it as CSV file with link like:

http://ichart.finance.yahoo.com/table.csv?s=WU&a=01&b=19&c=2010&d=01&e=19&f=2010&g=d&ignore=.csv

Now, if you want to play with the data you are getting from yahoo! you can run some fun SQL like:

Getting the Standard divination of a specific stock:

SELECT stock, STD(Close-Price) from `historic_prices` where stock = "NFLX" AND date > "2010-01-01" group by stock

This will give you the Standard divination on Netflix (hot hot stock these days) from the beginning of 2010 (and like the meaning of the universe… it’s 42!)

Here is another way to work with finance data from NodeJS.

Happy hacking!

Standard
webdev

Some usefull jQuery Plugin for the weekend

jQuery is making our life so much more productive (e.g. !(‘do less – write more’).

Here are some useful plugins I’ve being using in the past few weeks:

  • http://malsup.com/jquery/cycle/ – simple, nice and powerful way to throw some nice slides shows.
  • http://plugins.jquery.com/project/PseudoDiv – This is a div with transparent background. and layout. It gives interective look without attaching any background image.
  • http://plugins.jquery.com/project/Realtime-Related-Tweets-Bar
    This is a highly customizable real-time Twitter search-driven bar of tweets related to your post. With all the buzz lately about Twitter real-time search. Why don’t you add a real-time tweets bar related to your posts from your twitter timeline or from anybody or even limit it by a geo code coordinates.
  • http://plugins.jquery.com/project/Jcrop – Jcrop is the quick and easy way to add image cropping functionality to your web application. It combines the ease-of-use of a typical jQuery plugin with a powerful cross-platform DHTML cropping engine that is faithful to familiar desktop graphics applications.
  • http://plugins.jquery.com/project/floatobject
    Make DOM object float on screen to follow the users while they scroll the page.
    This plug-in can be used for floating menus AND Floating headers in long tables
Standard
Business, life

Ahh… Yahoo! yahoo! y! y…

I love this company. And yes – I’ve spent 3 great years there.

 

Standard
life

iPhone developers are (not) stupid!

I’ve just finish to read this excellent post from our good/old PPK.

The battle between Native iPhone apps and Web apps is very interesting specailly when Palm Pre and Andriods are moving more and more into the arena of real ‘smart phones’ (well, not the ones with windows on them :).

Standard
life

Heavenly: We’re Opening THIS FRIDAY!

Well, I have just so that Heavenly ski resort is posting that:

We’re Opening THIS FRIDAY!

Here’s the news you’ve all been waiting for – Blaise Carrig, Heavenly’s COO (AND co-president of Vail Resorts’ Mountain Division), announced to a small community group Thursday night that we’d be opening for sure this Friday, November 20, 2009 at 9:00am sharp. We’ll access the mountain through the Gondola, doing laps on Cal Trail off […]


Great!
See you on the snow.

Standard
good food

Some recipts from Aba

borekasFrom time to time – it’s great to get new ideas so the kids will have something new to eat 🙂

Standard
good food

תפריט היום – חשאווה

טורטיות עם ירקות ורצועות עוף,”חשאווה” משופר [יש מתכון] וירקות בתנור

בתאבון ושבת שלוםemoticon15

Standard
Business, life

OLPC (or in english – One Laptop per Child)

Each time I see/hear Nicholas Negroponte or see OLPC project in action (last episode of Entourage) – I feel existed about this amazing project.

Here are few things that you (yes – you!) as a developer can do in order to help this great effort:

  • Buy one. Ahh… buy at least 2 – so you could give one for a child and save her life and the other so you could develop software and test it for real.
  • Become a translator – OLPC currently deploys in 19 local languages, and the OLPC translation community is working on over 90 more.
  • Provide support – Sometimes kids and adults need a little extra help with their laptop. They want to know how to install a new program, or fix a problem. We have a very dedicated team of volunteers that assist users with problems. Not much technical experience is necessary.
  • Develop software – New games and programs are always needed. If you would like to help develop software for the XO, see the Developer’s Resources.

Here is a very good/short video that explain the mission.


Standard
life

Introduction to HTML 5

Good stuff:

Introduction to HTML 5

Are you interested in HTML 5 and what’s coming down the pipeline but haven’t had time to read any articles yet? I’ve put put together an educational Introduction to HTML 5 video that goes over many of the major aspects of the new standard, including:

  • Web vector graphics with the Canvas tag and Scalable Vector Graphics (SVG)
  • The Geolocation API
  • HTML 5 Video
  • The HTML 5 Database and Application Cache
  • Web workers

In the video I also crack open the HTML 5 YouTube Video prototype to show you some of the new HTML 5 tags, such as nav, article, etc. It’s chock full of demos and sample source code.

Introduction to HTML 5 from Brad Neuberg on Vimeo.

ajaxian?d=yIl2AUoC8zA ajaxian?d=7Q72WNTAKBA ajaxian?i=w7woPI4XEdw:p1Ka5N27zkQ:D7DqB2pKExk

Standard