Post
Topic
Board Development & Technical Discussion
Re: API to get price of a silver (or other PM) in BTC?
by
DeathAndTaxes
on 04/01/2013, 01:27:20 UTC
I might be able to whip something up...PM inbound.

I've finished the application.  It currently pulls the last local USD trade from http://mtgox.com/api/1/BTCUSD/ticker and then grabs the Kitco chart from http://www.kitco.com/images/live/silver.gif...crops the image to only the "- Jan 02 Last 31.050" section then scales it up 10x (improved OCR detection/accuracy).  OCR functions are then performed on the image and just the price is grabbed from that line.  Once both values are available, the last MtGox USD price is divided by the last Silver USD spot price and rounded to the 4th decimal and then the result is output to file Smiley

I hope you didn't spend too much time on it. I didn't ask anyone to write anything for me.   I am not found of screen captures because they are fragile and for the application I am looking at if it broke and reported incorrect data it could be costly.