PHPackages                             codenix-sv/kuna-api - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. codenix-sv/kuna-api

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

codenix-sv/kuna-api
===================

PHP REST API v2 client for Kuna exchange

v0.1.0(6y ago)281MITPHPPHP ^7.2

Since Mar 18Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/codenix-sv/kuna-api)[ Packagist](https://packagist.org/packages/codenix-sv/kuna-api)[ Docs](https://github.com/codenix-sv/kuna-api)[ RSS](/packages/codenix-sv-kuna-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Kuna.io PHP API V2 Client
=========================

[](#kunaio-php-api-v2-client)

[![Build Status](https://camo.githubusercontent.com/e791deba5e109d451f97f8df060f88eeb74b8c0a4966ff324f59781be8c5b386/68747470733a2f2f7472617669732d63692e6f72672f636f64656e69782d73762f6b756e612d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/codenix-sv/kuna-api)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/77aef7313bfabd173892f695c24e807b2abf67df44fe0fa247b9681e81c68583/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f64656e69782d73762f6b756e612d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/codenix-sv/kuna-api/?branch=master)[![Test Coverage](https://camo.githubusercontent.com/44271eb70601e30605d9834e672db897e0e63a4cbc63691bd4175be89657f139/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30363163663939323238613964623635333364392f746573745f636f766572616765)](https://codeclimate.com/github/codenix-sv/kuna-api/test_coverage)[![Maintainability](https://camo.githubusercontent.com/bf43be6ef2b5e1bafccb2ac7f07502e197143c80bf6ccc23384a94372e0d7943/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30363163663939323238613964623635333364392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/codenix-sv/kuna-api/maintainability)[![License: MIT](https://camo.githubusercontent.com/a9552ad95ed22c440c83383e40c4bf786d40bced3bd271336fb2418025c703af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f64656e69782d73762f6b756e612d617069)](https://github.com/codenix-sv/kuna-api/blob/master/LICENSE)

🚨 ARCHIVED 🚨
============

[](#-archived-)

This repository is no longer active.
⛔ No new issues
⛔ No pull requests
⛔ No maintenance

Source code is kept only for reference purposes.

A simple PHP API client, written with PHP for [kuna.io](https://kuna.io).

Kuna.io [API documentation](https://kuna.io/documents/api?lang=en).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2
- ext-json

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require codenix-sv/kuna-api
```

or add

```
"codenix-sv/kuna-api": "^0.1"
```

Basic usage
-----------

[](#basic-usage)

### Example

[](#example)

```
use Codenixsv\KunaApi\KunaClient;

$client = new KunaClient('publicKey', 'secretKey');

$data = $client->publicApi()->getTimestamp();
```

### Public Methods

[](#public-methods)

#### getTimestamp

[](#gettimestamp)

Server time.

```
$data = $client->publicApi()->getTimestamp();
```

#### getTickers

[](#gettickers)

Recent market data.

```
$market = 'btcuah';

$data = $client->publicApi()->getTickers($market);
```

#### getDept

[](#getdept)

Order book.

```
$market = 'btcuah';

$data = $client->publicApi()->getDepth($market);
```

#### getTrades

[](#gettrades)

Trades history.

```
$market = 'btcuah';

$data = $client->publicApi()->getTrades($market);
```

### User Methods

[](#user-methods)

#### getMe

[](#getme)

Information about the user and assets.

```
$data = $client->privateApi()->getMe();
```

#### createOrder

[](#createorder)

Order placing.

```
$side = 'buy';
$volume = 1.00;
$market = 'btcuah';
$price = 2000.00;

$data = $client->privateApi()->createOrder($side, $volume, $market, $price);
```

#### deleteOrder

[](#deleteorder)

Order cancel.

```
$id = 32555;

$data = $client->privateApi()->deleteOrder($id);
```

#### getOrders

[](#getorders)

Active user orders.

```
$market = 'btcuah';

$data = $client->privateApi()->getOrders($market);
```

#### getMyTrades

[](#getmytrades)

User trade history.

```
$market = 'btcuah';

$data = $client->privateApi()->getMyTrades($market);
```

License
-------

[](#license)

`codenix-sv/kuna-api` is released under the MIT License. See the bundled [LICENSE](./LICENSE) for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance48

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

2250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8907d07b122404a37d236411aa11851e36f8693183439572675ffcbddb3fdfe?d=identicon)[codenix-sv](/maintainers/codenix-sv)

---

Top Contributors

[![HexV0l](https://avatars.githubusercontent.com/u/269891814?v=4)](https://github.com/HexV0l "HexV0l (6 commits)")

---

Tags

apiapi-clientcryptocurrencycryptocurrency-exchangesexchangekunakuna-apikuna-api-v2kuna-phpphpapiclientrestexchangekuna.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codenix-sv-kuna-api/health.svg)

```
[![Health](https://phpackages.com/badges/codenix-sv-kuna-api/health.svg)](https://phpackages.com/packages/codenix-sv-kuna-api)
```

PHPackages © 2026

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