user4065: Is there anyway to get current rate of BRL = BTC.
I saw the blockchiain ticker. But the value for BRL currency is not updated 
As listed here in preev.
I want to get the
 current 1BTC= how much BRL

Thanks in advance!

user22974: This is a simple way to print the value of 1 BTC in BRL with PHP.
You could manipulate the string containing the value for 1 BTC in BRL further if you need.
<?php

$jsnsrc = "https://blockchain.info/ticker";
$json = file_get_contents($jsnsrc);
$json = json_decode($json);
$one_Btc_To_Brl = $json->BRL->last;

print "1 BTC = " . $one_Btc_to_Brl;
?>


user23247: BitPay have a JSON API on https://bitpay.com/api/rates
You can get BRL value with this command and calculate, (this API update every 1 minute)
curl -ks https://bitpay.com/api/rates | python -m json.tool | grep -iA 1 'Brasilian Real' | grep -i 'rate' | cut -f2 -d ':' | tr -d ' '


You will need:
- CURL
- Python 2.7+
- grep + cut + tr  

4065: <p>Is there anyway to get current rate of BRL = BTC.</p>

<p>I saw the <a href="https://blockchain.info/ticker" rel="nofollow">blockchiain ticker</a>. But the value for BRL currency is not updated 
As listed <a href="http://preev.com/btc/brl" rel="nofollow">here in preev</a>.
I want to get the</p>

<pre><code> current 1BTC= how much BRL
</code></pre>

<p>Thanks in advance!</p>
 22974: <p>This is a simple way to <a href="http://php.net/manual/en/function.print.php" rel="nofollow">print</a> the value of 1 BTC in BRL with PHP.</p>

<p>You could manipulate the string containing the value for 1 BTC in BRL further if you need.</p>

<pre><code>&lt;?php

$jsnsrc = "https://blockchain.info/ticker";
$json = file_get_contents($jsnsrc);
$json = json_decode($json);
$one_Btc_To_Brl = $json-&gt;BRL-&gt;last;

print "1 BTC = " . $one_Btc_to_Brl;
?&gt;
</code></pre>
 23247: <p>BitPay have a JSON API on <a href="https://bitpay.com/api/rates" rel="nofollow">https://bitpay.com/api/rates</a><br>
You can get BRL value with this command and calculate, (this API update every 1 minute)</p>

<pre><code>curl -ks https://bitpay.com/api/rates | python -m json.tool | grep -iA 1 'Brasilian Real' | grep -i 'rate' | cut -f2 -d ':' | tr -d ' '
</code></pre>

<hr>

<p>You will need:<br>
- CURL<br>
- Python 2.7+<br>
- grep + cut + tr  </p>
