-2
I’m trying to add a percentage of the value to itself, but I couldn’t do.
<?php
$data = json_decode(file_get_contents("https://broker.negociecoins.com.br/api/v3/btcbrl/ticker"));
echo "<pre>";
print_r($data->sell);
echo "</pre>"; ?>
I have this JSON that returns me a value and I would like to add for example +30% in this value before displaying it, but in any way that I tried it does not work, someone has an idea?
Thank you so much, you’re the man.
– Eduardo Cardoso dos santos