After apiv2.bitcoinaverage.com is not free anymore I need another solution.
I want to convert an x BTC Amount into USD from the current rate.
My Old Code:
$getrate = "https://apiv2.bitcoinaverage.com/convert/global?from=BTC&to=USD&amount=0.005"; $btcprice = array(
'price' =>
array(
'method' => 'GET',
)
);
$priceone = stream_context_create($btcprice);
$pricetwo = file_get_contents($getrate, false, $priceone);
$result = json_decode($pricetwo, true);
Can I do the same with api from https://alternative.me/crypto/api/ ?
Any help will be appreciated!!