PHPackages                             olegstyle/yobitapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. olegstyle/yobitapi

ActiveLibrary[API Development](/categories/api)

olegstyle/yobitapi
==================

Yobit Api

v1.1.0(8y ago)030MITPHPPHP &gt;=7.1

Since Feb 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/olegstyle/yobit)[ Packagist](https://packagist.org/packages/olegstyle/yobitapi)[ Docs](http://bodev.pro/)[ RSS](/packages/olegstyle-yobitapi/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Yobit Api implementation
========================

[](#yobit-api-implementation)

This is a implementation of Yobit Api on PHP.

Api documentation:

Installation
============

[](#installation)

#### 1. Append to composer package requires

[](#1-append-to-composer-package-requires)

```
composer require olegstyle/yobitapi

```

##### If it not available then try this:

[](#if-it-not-available-then-try-this)

##### 1.1 Add it to composer repositories:

[](#11-add-it-to-composer-repositories)

```
"repositories": [
    # ...
    {
        "type": "vcs",
        "url": "https://git@bitbucket.org/dreamteam_ov/yobit-api.git"
    }
    # ...
],

```

##### 1.2 Add it to composer require:

[](#12-add-it-to-composer-require)

```
"require: {
    "olegstyle/yobitapi": "dev-master"
}

```

##### 1.3 Make:

[](#13-make)

```
composer install

```

##### or

[](#or)

```
composer update

```

#### 2. Install PhantomJS.

[](#2-install-phantomjs)

It needs for get around Cloudflare. PhantomJS installation guide for ubuntu on down of readme

#### 3. Make sure that you are not using php in safe mode

[](#3-make-sure-that-you-are-not-using-php-in-safe-mode)

Another way PhantomJS will not be working

#### 4. Use it `^_^`

[](#4-use-it-_)

How to use?
===========

[](#how-to-use)

Like a original api package have public api (`\OlegStyle\YobitApi\YobitPublicApi`) and trade api (`\OlegStyle\YobitApi\YobitTradeApi`)

### Public Api usage

[](#public-api-usage)

```
$pairs = [
   new \OlegStyle\YobitApi\Models\CurrencyPair('btc', 'eth'),
   new \OlegStyle\YobitApi\Models\CurrencyPair('bch, 'btc'),
];
$publicApi = new \OlegStyle\YobitApi\YobitPublicApi();
$publicApi->getInfo(); // get info about all pairs
$publicApi->getTickers($pairs); // limit - 50 pairs
$publicApi->getTicker('btc', 'eth');
$publicApi->getDepths($pairs); // limit - 50 pairs
$publicApi->getDepth('btc', 'eth');
$publicApi->getTrades($pairs); // limit - 50 pairs
$publicApi->getTrade('btc', 'eth');

```

### Trade Api usage

[](#trade-api-usage)

Make sure that you are using different public/secret keys in development and production

```
$publicKey = 'YOR_PUBLIC_KEY';
$privateKey = 'YOR_PRIVATE_KEY'; // or secret key

$tradeApi = new \OlegStyle\YobitApi\YobitTradeApi($publicKey, $privateKey);
$tradeApi->getInfo(); // Method returns information about user's balances and priviledges of API-key as well as server time.
$tradeApi->trade( // Method that allows creating new orders for stock exchange trading
  new \OlegStyle\YobitApi\CurrencyPair('bch, 'btc'), // pair
  \OlegStyle\YobitApi\Enums\TransactionTypeEnum::BUY, // type of trade. can be: TransactionTypeEnum::BUY or TransactionTypeEnum::SELL
  0.023, // rate
  0.1 // amount
);
$tradeApi->getActiveOrders( // Method returns list of user's active orders (trades)
  new \OlegStyle\YobitApi\CurrencyPair('bch, 'btc') // pair
);
$tradeApi->getOrderInfo($orderId); // Method returns detailed information about the chosen order (trade)
$tradeApi->cancelOrder($orderId); // Method cancells the chosen order

```

Thanks to
=========

[](#thanks-to)

- 👍 A VERY thanks to **[Antologi](https://gist.github.com/antoligy)** for **[cloudflare-challenge.js](https://gist.github.com/antoligy/f4f084b87946f84a89b4)**
- 👍 All the amazing people who make [issues](https://github.com/olegstyle/yobitapi/issues) and [pull requests](https://github.com/olegstyle/yobitapi/pulls)!

PhantomJS Installing
====================

[](#phantomjs-installing)

Before installing PhantomJS, you will need to install some required packages on your system. You can install all of them with the following command:

```
sudo apt-get install build-essential chrpath libssl-dev libxft-dev libfreetype6-dev libfreetype6 libfontconfig1-dev libfontconfig1 -y

```

Next, you will need to download the PhantomJS. You can download the latest stable version of the PhantomJS from their official website. Run the following command to download PhantomJS:

```
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

```

Once the download is complete, extract the downloaded archive file to desired system location:

```
sudo tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/

```

Next, create a symlink of PhantomJS binary file to systems bin dirctory:

```
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/

```

PhantomJS is now installed on your system. You can now verify the installed version of PhantomJS with the following command:

```
phantomjs --version

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3068d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22445702?v=4)[Oleh Borysenko](/maintainers/olegstyle)[@olegstyle](https://github.com/olegstyle)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/olegstyle-yobitapi/health.svg)

```
[![Health](https://phpackages.com/badges/olegstyle-yobitapi/health.svg)](https://phpackages.com/packages/olegstyle-yobitapi)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
