Bitcoin Forum
May 05, 2024, 08:18:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how are you pulling JSON from exchanges?  (Read 798 times)
Tasty Champa (OP)
Member
**
Offline Offline

Activity: 84
Merit: 10


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

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?
1714897091
Hero Member
*
Offline Offline

Posts: 1714897091

View Profile Personal Message (Offline)

Ignore
1714897091
Reply with quote  #2

1714897091
Report to moderator
1714897091
Hero Member
*
Offline Offline

Posts: 1714897091

View Profile Personal Message (Offline)

Ignore
1714897091
Reply with quote  #2

1714897091
Report to moderator
1714897091
Hero Member
*
Offline Offline

Posts: 1714897091

View Profile Personal Message (Offline)

Ignore
1714897091
Reply with quote  #2

1714897091
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
nimnul
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


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

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

hamburger
Full Member
***
Offline Offline

Activity: 241
Merit: 107



View Profile WWW
August 30, 2011, 09:48:17 AM
 #3

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

http://www.bitcoin.za.org/api

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

{"ZAR":"62.78"}

In PHP you can do this;

Code:
<?php

$_rate 
file_get_contents("http://www.bitcoin.za.org/api");
$obj json_decode($_rate);
$_rate $obj->{'ZAR'};

echo 
"ZAR = $_rate";

?>


This will result in;

ZAR = 62.78

Hope it help you or someone.

Hamburger


Datacoin : DHZ6H91fsDoBHbdqED3ysCJJ2TUh3zRMZD
Krugercoin : Yz3A9sTMp2yh5QLuAL8YQyvS5PdjHRHkkf
brandon@sourcewerks
Member
**
Offline Offline

Activity: 62
Merit: 10



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

What exchanges are you looking to extract JSON data from?

I have written libraries for some exchanges already.  See my sig
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!