forked from super3/invictus.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetprice.php
More file actions
32 lines (28 loc) · 684 Bytes
/
getprice.php
File metadata and controls
32 lines (28 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
if($_REQUEST['exchange'] == 'Bter')
{
$api_val = file_get_contents('https://bter.com/api/1/ticker/pts_btc');
echo $api_val;
}
elseif ($_REQUEST['exchange'] == 'Cryptsy')
{
$api_val = file_get_contents('http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=119');
echo $api_val;
}
elseif ($_REQUEST['exchange'] == 'Btc38')
{
}
elseif ($_REQUEST['exchange'] == 'Peatio')
{
}
elseif ($_REQUEST['exchange'] == 'MtGox')
{
$api_val = file_get_contents('http://data.mtgox.com/api/2/BTCUSD/money/ticker');
echo $api_val;
}
elseif ($_REQUEST['exchange'] == 'blockchain')
{
$api_val = file_get_contents('https://blockchain.info/ticker');
echo $api_val;
}
?>