Back again looking for the genius that is "sotisoti"
I am having issues with Nova API
The url is
https://novaexchange.com/remote/v2/market/info/BTC_AUR/and outputs as :
{"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"}]}
So there for my code looks like this:
<?php
$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"<pre>";
print_r ($obj);
echo"</pre>";
*/
$bid = sprintf("%0.8f", $obj->markets->bid);
echo $bid;
?>
But it returns an output of "0.00000000"
I think it has something to do with this : (in red)
{"status": "success", "message": "Info for market: BTC_AUR", "markets":
[{"bid": "0.00009608",
As I have not seen this before.
AM i on the right lines and how do i get around it ?
Many Thanks again
Crunck