PHP code example of guilhermecfviana / mercadobitcoin

1. Go to this page and download the library: Download guilhermecfviana/mercadobitcoin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

guilhermecfviana / mercadobitcoin example snippets


$options = [
    'identificador' => 'seu_identificador',
    'segredo' => 'seu_segredo',
];

$test = new \GuilhermeViana\MercadoBitcoin\TradeApi($options['identificador'], $options['segredo']);
echo $test->getAccountInfo();

    ~/workspace/PHP/mercadobitcoin$ docker-compose up