Bitcoin Forum
December 04, 2016, 08:21:39 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Any bitcoin widget/ticker that lets me....  (Read 504 times)
bbit
Legendary
*
Offline Offline

Activity: 1288

Bitcoin


View Profile
September 18, 2011, 10: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?
1480882899
Hero Member
*
Offline Offline

Posts: 1480882899

View Profile Personal Message (Offline)

Ignore
1480882899
Reply with quote  #2

1480882899
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480882899
Hero Member
*
Offline Offline

Posts: 1480882899

View Profile Personal Message (Offline)

Ignore
1480882899
Reply with quote  #2

1480882899
Report to moderator
1480882899
Hero Member
*
Offline Offline

Posts: 1480882899

View Profile Personal Message (Offline)

Ignore
1480882899
Reply with quote  #2

1480882899
Report to moderator
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
September 18, 2011, 10:28:38 PM
 #2

Code:
<?php
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;
?>

bbit
Legendary
*
Offline Offline

Activity: 1288

Bitcoin


View Profile
September 18, 2011, 10:32:46 PM
 #3

hmmmm I'll give that a try thanks!  Grin
NothinG
Hero Member
*****
Offline Offline

Activity: 560



View Profile
September 18, 2011, 10: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.

bbit
Legendary
*
Offline Offline

Activity: 1288

Bitcoin


View Profile
September 18, 2011, 10: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...
bbit
Legendary
*
Offline Offline

Activity: 1288

Bitcoin


View Profile
September 18, 2011, 10:42:06 PM
 #6

Yes, I have no clue what I'm doing lol  Shocked
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!