Post
Topic
Board Development & Technical Discussion
Re: API to get price of a silver (or other PM) in BTC?
by
Eveofwar
on 03/01/2013, 02:27:07 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