https://github.com/bitfinexcom/bitfinex-api-php
https://github.com/bitfinexcom/bitfinex-api-php
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitfinexcom/bitfinex-api-php
- Owner: bitfinexcom
- Created: 2021-09-23T14:15:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-08T14:08:02.000Z (over 4 years ago)
- Last Synced: 2025-04-11T06:13:58.438Z (about 1 year ago)
- Language: PHP
- Size: 613 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bitfinex-api-php
## Features
* Official implementation
* REST v2 API
## Installation
```bash
composer require bitfinex/api-rest
```
## Usage
```php
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
```bash
composer run-script test
```
## Docs
Documentation at [https://docs.bitfinex.com/v2/reference](https://docs.bitfinex.com/v2/reference)