Bitcoin Forum
April 20, 2018, 03:31:56 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: how are you pulling JSON from exchanges?  (Read 721 times)
Tasty Champa
Offline Offline

Activity: 84
Merit: 10

View Profile
August 26, 2011, 09:31:07 PM

Every time I look at the page source of tickers, order books and charts, I don't see anything.
Is this all happening with SSI?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Sr. Member
Offline Offline

Activity: 255
Merit: 250

View Profile WWW
August 28, 2011, 01:27:24 PM

It's all happening with AJAX and Websockets/Socket.IO

Full Member
Offline Offline

Activity: 159
Merit: 102

View Profile
August 30, 2011, 09:48:17 AM

You find the URL for the API - see below, this is for getting the South African Rand price of Bitcoin

If you call the page directly with your browser you will get something like this;


In PHP you can do this;


$obj json_decode($_rate);
$_rate $obj->{'ZAR'};

"ZAR = $_rate";


This will result in;

ZAR = 62.78

Hope it help you or someone.


Offline Offline

Activity: 62
Merit: 10

View Profile
August 31, 2011, 04:15:10 PM

What exchanges are you looking to extract JSON data from?

I have written libraries for some exchanges already.  See my sig
Pages: [1]
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!