Advertisement
riking

Untitled

Apr 20th, 2013
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <riking> ?btc
  2. <Shocky> Current BTC Ticker: High: $120.0 Low: $109.0 Average: $114.5
  3. <riking> ?+btc
  4. <Shocky> btc: <php>$json=json_decode(Requests::get('https://btc-e.com/api/2/1/ticker')->body,true);$ticker=$json['ticker'];printf('Current BTC Ticker: High: $%.1f Low: $%.1f Average: $%.1f',$ticker['high'],$ticker['low'],$ticker['avg']);if($argc===1){$f=(float)$args;printf("\n%.9f BTC => $%.3f",$f,$f*$ticker['last']);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement