PHPackages                             slvler/btcturk-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. slvler/btcturk-api

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

slvler/btcturk-api
==================

PHP REST API client for btcturk.com

v1.1.1(1y ago)9182MITPHPPHP ^7.2|^8.0

Since Mar 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/slvler/btcturk-api)[ Packagist](https://packagist.org/packages/slvler/btcturk-api)[ Docs](https://github.com/slvler/btcturk-api)[ RSS](/packages/slvler-btcturk-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

PHP API client for btcturk.com
==============================

[](#php-api-client-for-btcturkcom)

[![tests](https://github.com/slvler/btcturk-api/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/btcturk-api/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/867900b49eadd5cbeb8afb7c7bab4acacd710465216b4c8f6e20d8f30c768716/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6274637475726b2d6170692f76)](https://packagist.org/packages/slvler/btcturk-api)[![Latest Unstable Version](https://camo.githubusercontent.com/dbbe9ca925fdcf29cb7e197bcd057bc7cd46a4773acc4525626c67329a8447d8/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6274637475726b2d6170692f762f756e737461626c65)](https://packagist.org/packages/slvler/btcturk-api)[![License](https://camo.githubusercontent.com/92f6466d76d6e295469ab2c526e2f6447d671485e607d977d327174af9bf96c7/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6274637475726b2d6170692f6c6963656e7365)](https://packagist.org/packages/slvler/btcturk-api)[![Total Downloads](https://camo.githubusercontent.com/288d90dc021095248718b70c58470c409b176123c9072db56540d9a054f9e2c8/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f6274637475726b2d6170692f646f776e6c6f616473)](https://packagist.org/packages/slvler/btcturk-api)

[![image info](./art/btcturk-logo.png)](./art/btcturk-logo.png)

A simple API client, written with PHP for [btcturk.com](https://btckturk.com).

BtcTurk is a cryptocurrency exchange operating in Turkey. Offers crypto trading service. There are various crypto services available.

For additional information about API visit

BtcTurk API [Terms of Service](https://pro.btcturk.com/en/legal-information/terms-of-use)

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 slvler/btckturk-api
```

or add

```
"slvler/btckturk-api": "^1.0"
```

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

[](#basic-usage)

### Example

[](#example)

```
use slvler\BtcTurkApi\BtcTurkClient;

$client = new BtcTurkClient();
```

Available methods
-----------------

[](#available-methods)

### Exchange

[](#exchange)

#### [exchange-info](https://docs.btcturk.com/public-endpoints/exchange-info)

[](#exchange-info)

You can use exchangeinfo endpoint for all tradable pairs and their quantity or price scales.

```
$data = $client->exchange()->getList();
```

### Tickers

[](#tickers)

#### [Pair](https://docs.btcturk.com/public-endpoints/ticker#pair)

[](#pair)

Using the pairSymbol parameter, you can send a request for a single pair.

```
$data = $client->ticker()->getPair('BTCUSDT');
```

#### [currency](https://docs.btcturk.com/public-endpoints/ticker#currency)

[](#currency)

currency parameter can be used for all symbol pairs.

```
$data = $client->ticker()->getCurrency('usdt');
```

### OrderBook

[](#orderbook)

#### [orderbook](https://docs.btcturk.com/public-endpoints/orderbook)

[](#orderbook-1)

Get a list of all open orders for a product.

```
$data = $client->orderBook()->getOrderBook('BTCUSDT', ['limit' => 10]);
```

### Trades

[](#trades)

#### [trades](https://docs.btcturk.com/public-endpoints/trades)

[](#trades-1)

Gets a list the latest trades for a product.

```
$data = $client->trades()->getTrades('BTCUSDT', ['last' => 10]);
```

### OHLC Data

[](#ohlc-data)

#### [OHLC](https://docs.btcturk.com/public-endpoints/ohcl-data#ohlc-data)

[](#ohlc)

open, high, low, close, volume, total and average information can be viewed with OHLC enpoint.

```
$data = $client->ohlcs()->getOhlcs('BTCUSDT', ['from' => 1638316800, 'to' => 1639526400]);
```

### Account Balance

[](#account-balance)

#### [Balance](https://docs.btcturk.com/private-endpoints/account-balance)

[](#balance)

For more information you can check our Authentication V1 article. All asset information can be viewed with the Account Balance endpoint.

```
$data = $client->balance()->getBalances();
```

### Transactions

[](#transactions)

#### [Transactions](https://docs.btcturk.com/private-endpoints/user-transactions)

[](#transactions-1)

For more information you can check our Authentication V1 article. 6 parameters can be used to access user transactions.

```
$data = $client->transaction()->getTransaction(['type' => 'buy', 'symbol' => 'btc', 'symbol' => 'usdt']);
```

#### [Fiat Transactions](https://docs.btcturk.com/private-endpoints/get-fiat-transactions)

[](#fiat-transactions)

For more information you can check our Authentication V1 article. 4 parameters can be used to access user fiat transactions.

```
$data = $client->transaction()->getFiatTransactions(['symbol' => 'try']);
```

#### [Crypto Transactions](https://docs.btcturk.com/private-endpoints/get-crypto-transactions)

[](#crypto-transactions)

For more information you can check our Authentication V1 article. 4 parameters can be used to access user fiat transactions.

```
$data = $client->transaction()->getCryptoTransactions(['symbol' => ['btc','etc']]);
```

### Orders

[](#orders)

#### [Open Orders](https://docs.btcturk.com/private-endpoints/open-orders)

[](#open-orders)

List your current open orders. Only open or un-settled orders are returned by default. As soon as an order is no longer open and settled, it will no longer appear in the default request.

```
$data = $client->orders()->getOpenOrders('BTCTRY');
```

#### [All Orders](https://docs.btcturk.com/private-endpoints/all-orders)

[](#all-orders)

Retrieve all orders of any status.

```
$data = $client->orders()->getAllOrders(['pairSymbol' => 'BTCTRY', 'limit' => "1", 'page' => '10']);
```

#### [Single Order](https://docs.btcturk.com/private-endpoints/get-single-order)

[](#single-order)

Get a single order by orderId. For all transactions related to the private endpoint, you must authorize before sending your request.

```
$data = $client->orders()->getSingleOrder('61912740');
```

### Testing

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [slvler](https://github.com/slvler)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/slvler/btcturk-api/blob/main/LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~297 days

Total

3

Last Release

573d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab8128832fb3e8a0d513453a903d7c49475f5f89dbf7ec39cf1d0518026b7ea?d=identicon)[slvler](/maintainers/slvler)

---

Top Contributors

[![selviler](https://avatars.githubusercontent.com/u/56368718?v=4)](https://github.com/selviler "selviler (13 commits)")

---

Tags

altcoinsblockchainbtcturkbtcturk-apibtcturk-clientbtcturk-phpcryptocurrencyphprest-apirest-clientrestful-apiphpapiclientrestbtcturk.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slvler-btcturk-api/health.svg)

```
[![Health](https://phpackages.com/badges/slvler-btcturk-api/health.svg)](https://phpackages.com/packages/slvler-btcturk-api)
```

###  Alternatives

[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)

PHPackages © 2026

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