bitfinex/api-rest

Official Bitfinex REST v2 API interface

v1.0.0 2021-12-08 14:00 UTC

This package is not auto-updated.

Last update: 2024-04-25 23:34:43 UTC


README

Features

  • Official implementation
  • REST v2 API

Installation

composer require bitfinex/api-rest

Usage

require __DIR__.'/vendor/autoload.php';

use BFX\RESTv2;

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

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

Testing

composer run-script test

Docs

Documentation at https://docs.bitfinex.com/v2/reference