PHP code example of bitfinex / api-rest

1. Go to this page and download the library: Download bitfinex/api-rest 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/ */

    

bitfinex / api-rest example snippets




use BFX\RESTv2;

$restV2 = new RESTv2([
  'apiKey' => '...',
  'apiSecret' => '...',
  'transform' => true
]);

try {
  $res = $restV2->userInfo();
  print_r($res);
} catch (\Throwable $ex) {
  var_dump($ex->getMessage());
}