You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
A simple PHP wrapper for [Bitfinex API](https://docs.bitfinex.com/docs). [Bitfinex](https://www.bitfinex.com) The world's largest and most advanced cryptocurrency trading platform
A simple PHP wrapper for [Bitfinex API](https://docs.bitfinex.com/docs/rest-general). [Bitfinex](https://www.bitfinex.com) The world's largest and most advanced cryptocurrency trading platform
8
+
3
9
## Requirements
4
10
5
-
- PHP >= 7.1
11
+
* PHP >= 7.2
12
+
* ext-json
13
+
*[Bitfinex](https://www.bitfinex.com), API key and API secret
6
14
7
15
## Installation
8
16
@@ -11,12 +19,12 @@ The preferred way to install this extension is through [composer](http://getcomp
11
19
Either run
12
20
13
21
```bash
14
-
$ composer require codenix-sv/bitfinex-api:~0.2
22
+
$ composer require codenix-sv/bitfinex-api
15
23
```
16
24
or add
17
25
18
26
```json
19
-
"codenix-sv/bitfinex-api" : "~0.2"
27
+
"codenix-sv/bitfinex-api" : "^1.0"
20
28
```
21
29
22
30
to the require section of your application's `composer.json` file.
@@ -25,46 +33,99 @@ to the require section of your application's `composer.json` file.
25
33
26
34
### Example
27
35
```php
28
-
use codenixsv\Bitfinex\BitfinexManager;
36
+
use Codenixsv\BitfinexApi\BitfinexClient;
37
+
38
+
$client = new BitfinexClient();
39
+
$data = $client->public()->getPlatformStatus();
40
+
```
41
+
## Available methods
42
+
43
+
### Public API
29
44
30
-
$manager = new BitfinexManager();
31
-
$client = $manager->createClient();
45
+
#### getPlatformStatus
46
+
Get the current status of the platform, “Operative” or “Maintenance” (1=operative, 0=maintenance). Maintenance periods generally last for a
47
+
few minutes to a couple of hours and may be necessary from time to time during infrastructure upgrades.
32
48
33
-
$responce = $client->getTicker('btcusd');
49
+
```php
50
+
$data = $client->public()->getPlatformStatus();
34
51
```
35
-
### Available methods
36
52
37
-
#### Public API
53
+
#### getTickers
54
+
The tickers endpoint provides a high level overview of the state of the market. It shows the current best bid and ask,
55
+
the last traded price, as well as information on the daily volume and price movement over the last day. The endpoint can retrieve multiple tickers with a single query.
##### Get a list of valid symbol IDs and the pair details.
112
+
113
+
#### getLiquidationFeed
114
+
Endpoint to retrieve liquidations. By default it will retrieve the most recent liquidations, but time-specific data can be retrieved using timestamps.
68
115
```php
69
-
$responce = $client->getSymbolsDetails();
70
-
```
116
+
$data = $client->public()->getLiquidationFeed();
117
+
```
118
+
119
+
#### getLeaderboards
120
+
The leaderboards endpoint allows you to retrieve leaderboard standings for unrealized profit (period delta), unrealized profit (inception), volume, and realized profit.
0 commit comments