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!

  • What do you mean that it's not updated?
    – Nick ODell
    May 13 '13 at 15:25
  • @NickODell as the bitcoin value keep fluctuating, accordingly the value of the BRL currency also changing so this value is not shown as it changes.
    – sandip
    May 14 '13 at 9:48
  • There are actually a couple of Brazilian exchanges that publish rates, but what they're not doing is providing an API. That's going to make it more difficult to curl in.
    – Yitzhak
    Mar 4 '14 at 2:01
  • Something you could do is use the btc-e api to get the bitcoin to dollars or euros price, and find a forex api that does dollars or euros to Real, and mash the whole thing together.
    – Yitzhak
    Mar 4 '14 at 2:02
  • @DoctorEvil Bitcoin is overcharged in Brazil, so your procedure won't return the actual price there. Mercado Bitcoin now has an API, see my answer. Jun 2 '14 at 13:08

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:
- Python 2.7+
- grep + cut + tr


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.


$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;
  • why Thiago Pereira answer requires so many additional setup but yours just plain PHP? Oct 26 '16 at 16:16

Try this currency converter site, they might have updated rates for BRL = BTC


You could start by parsing the JSON here:



wget --no-check-certificate https://www.mercadobitcoin.com.br/api/ticker/

returns data that can be parsed relatively easily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.