It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'https://api.coinmarketcap.com/v1/ticker/bitquark/');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,10);
curl_setopt($ch,CURLOPT_TIMEOUT,10);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
$result = curl_exec($ch);
curl_close($ch);
$data = json_decode($result,true);
$name = $data[0]['name'];
$symbol = $data[0]['symbol'];
$rank = number_format($data[0]['rank']);
$priceBTC = number_format($data[0]['price_btc'], 8);
$priceUSD = number_format($data[0]['price_usd'], 4);
$dayVolume = number_format($data[0]['24h_volume_usd'], 2);
$marketCap = number_format($data[0]['market_cap_usd'], 2);
$totalSupply = number_format($data[0]['total_supply'], 2);
$percentChange1Hr = number_format($data[0]['percent_change_1h'], 2);
$percentChange24Hr = number_format($data[0]['percent_change_24h'], 2);
$percentChange7Days = number_format($data[0]['percent_change_7d'], 2);
$lastUpdated = $data[0]['last_updated'];
?>
Name : echo "$name";?>
Symbol : echo "$symbol";?>
Ranking : echo "$rank";?>
Price BTC : echo "$priceBTC";?> BTC
Price USD : $echo "$priceUSD";?> USD
24hr Volume : $echo "$dayVolume";?> USD
Market Cap : $echo "$marketCap";?> USD
Total Supply : echo "$totalSupply";?> BTQ
Percent Change 1hr : echo "$percentChange1Hr";?> %
Percent Change 24hr : echo "$percentChange24Hr";?> %
Percent Change 7 Days: echo "$percentChange7Days";?> %
Last Updated : echo date('r', $lastUpdated);?>
include('nova.php');
// First init the class
$nova = new nova();
//Now select the pairs you want
$pair = array('BTC_XRBC', 'BTC_POSIV');
$info = $nova->getTickerData($pair);
var_dump($info); //you will have an idea of the data there
// Table now
echo '';
foreach ($info[0][0] as $key => $value) {
echo ''. $key . ' ';
}
echo ' ';
// Note that it is possible to change the returned responce from getTickerData to form a nice Array with clear data, but it is not the aim of the repo
for ($i=0; $i < count($info) ; $i++) {
echo '';
for ($e=0; $e < count($info[$i]); $e++) {
foreach ($info[$i][$e] as $key => $value) {
echo '' . $value . ' ';
}
}
echo ' ';
}
echo '
';
?>
// Set the JSON header header("Content-type: text"); //Create a function to make things easyer function getPrice($url){ $decode = file_get_contents($url); return json_decode($decode, true); } // $y is the request URL $y = getPrice('https://novaexchange.com/remote/v2/market/info/BTC_XRBC/'); // $z is the first array $z = $y['markets']; //$p is the object in $z array $p = $z[0]['bid']; echo ($p); ?> BTC | |
// Set the JSON header header("Content-type: text"); //Create a function to make things easyer function getPrice($url){ $decode = file_get_contents($url); return json_decode($decode, true); } // $y is the request URL $y = getPrice('https://novaexchange.com/remote/v2/market/info/BTC_POSIV/'); // $z is the first array $z = $y['markets']; //$p is the object in $z array $p = $z[0]['bid']; echo ($p); ?> BTC |
// Set the JSON header
header("Content-type: text/json");
//Create a function to make things easyer
function getPrice($url){
$decode = file_get_contents($url);
return json_decode($decode, true);
}
// $y is the request URL
$y = getPrice('https://novaexchange.com/remote/v2/market/info/BTC_AUR/');
// $z is the first array
$z = $y['markets'];
//$p is the object in $z array
$p = $z[0]['bid'];
echo json_encode($p);
?>
"0.00009608"
// Set the JSON header
header("Content-type: text/json");
//Create a function to make things easyer
function getPrice($url){
$decode = file_get_contents($url);
return json_decode($decode, true);
}
// $y is the request URL
$y = getPrice('https://novaexchange.com/remote/v2/market/info/BTC_AUR/');
// $z is the first array
$z = $y['markets'];
//$p is the object in $z array
$p = $z[0]['bid'];
echo json_encode($p);
?>
"0.00009608"
// Set the JSON header
header("Content-type: text/json");
//Create a function to make things easyer
function getPrice($url){
$decode = file_get_contents($url);
return json_decode($decode, true);
}
// $y is the request URL
$y = getPrice('https://novaexchange.com/remote/v2/market/info/BTC_AUR/');
// $z is the first array
$z = $y['markets'];
//$p is the object in $z array
$p = $z[0]['last_price'];
echo json_encode($z);
echo json_encode($p);
?>
printf("%0.8f", $obj->markets[0]->bid);
echo"";";
print_r($obj);
echo"
printf("%0.8f", $obj->markets[0]->bid);
[0]
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
echo"";";
print_r($obj);
echo"
printf("%0.8f", $obj->markets[0]->bid);
{"status": "success", "message": "Info for market: BTC_AUR", "markets": [{"bid": "0.00009608", "last_price": "0.00009528", "volume24h": "0.000", "marketid": 40, "currency": "AUR", "marketname": "BTC_AUR", "ask": "0.00013201", "low24h": "0.00009528", "change24h": "0.0", "high24h": "0.00009528", "basecurrency": "BTC"}]}
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 'https://novaexchange.com/remote/v2/market/info/BTC_AUR');
$result = curl_exec($ch);
curl_close($ch);
$obj = json_decode($result);
/*
echo"";
print_r ($obj);
echo"
";
*/
$bid = sprintf("%0.8f", $obj->markets->bid);
echo $bid;
?>
$avg = sprintf("%0.8f", $obj->swing_btc->avg);
echo $avg;
$avg = sprintf("%0.8f", $obj->swing_btc->avg);
echo $avg;
{"swing_btc":{"high":0.0000585,"low":0.00004717,"avg":0.00005283,"vol":0.17922473,"vol_cur":3646.92318916,"last":0.00004717,"buy":0.00004717,"sell":0.00005800,"updated":1485880252}}
echo $obj->swing_btc->high;
{"swing_btc":{"high":0.0000585,"low":0.00004717,"avg":0.00005283,"vol":0.17922473,"vol_cur":3646.92318916,"last":0.00004717,"buy":0.00004717,"sell":0.00005800,"updated":1485880252}}
echo $obj->swing_btc->high;