Author

Topic: Any bitcoin widget/ticker that lets me.... (Read 722 times)

legendary
Activity: 1330
Merit: 1000
Bitcoin
September 18, 2011, 05:42:06 PM
#6
Yes, I have no clue what I'm doing lol  Shocked
legendary
Activity: 1330
Merit: 1000
Bitcoin
September 18, 2011, 05:36:30 PM
#5
You'll have to modify it a bit to show the USD price, but that will give you a good starting point.

Yes, not sure I have a clue how to do that was going to just blop it into a page as is and see what happens lol hmmmm...
hero member
Activity: 560
Merit: 500
September 18, 2011, 05:33:51 PM
#4
You'll have to modify it a bit to show the USD price, but that will give you a good starting point.
legendary
Activity: 1330
Merit: 1000
Bitcoin
September 18, 2011, 05:32:46 PM
#3
hmmmm I'll give that a try thanks!  Grin
hero member
Activity: 560
Merit: 500
September 18, 2011, 05:28:38 PM
#2
Code:
function mtGoxRate()
{
$opts = array(
  'http'=> array(
'method'=>   "GET",
'user_agent'=>    "MozillaXYZ/1.0"));
$context stream_context_create($opts);
$json file_get_contents('https://mtgox.com/code/data/ticker.php'false$context);
$jdec json_decode($json);
$rate $jdec->{'ticker'}->{'avg'};
return $rate;
?>
legendary
Activity: 1330
Merit: 1000
Bitcoin
September 18, 2011, 05:25:52 PM
#1
display the price of bitcoin that I would personally sell at.  So in other words,  if I want to sell my bitcoin at $6 I should be able to put that into the code or something  so its automated...any ideas?
Jump to: