PHPackages                             codenix-sv/bittrex-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/bittrex-api

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

codenix-sv/bittrex-api
======================

PHP client for Bittrex API

v1.0.1(5y ago)2435.4k↓50%12[2 issues](https://github.com/codenix-sv/bittrex-api/issues)1MITPHPPHP ^7.2

Since Dec 3Pushed 5mo ago4 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (6)Used By (1)

This repository is no longer active.
====================================

[](#this-repository-is-no-longer-active)

⛔ No new issues ⛔ No pull requests ⛔ No maintenance

Source code is kept only for reference purposes.

bittrex-api
===========

[](#bittrex-api)

[![Build Status](https://camo.githubusercontent.com/a5807756a6cf8ca6b60c3346654aacbc7acc54a703a15c448e1f6c843bb1a43c/68747470733a2f2f7472617669732d63692e636f6d2f636f64656e69782d73762f626974747265782d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/codenix-sv/bittrex-api)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/80e30e9a52d576b5f45b7f49ef8d2928b9a2521c806bd537afc58355091c4105/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f64656e69782d73762f626974747265782d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/codenix-sv/bittrex-api/?branch=master)[![Test Coverage](https://camo.githubusercontent.com/a18d6a5ab15ead0396a5d131d8502ea026e9d3f9c36f83c47e1d03ac68a60410/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34396236393634333931393532363931323062342f746573745f636f766572616765)](https://codeclimate.com/github/codenix-sv/bittrex-api/test_coverage)[![Maintainability](https://camo.githubusercontent.com/80d5857fce65ecaef84e9de37b9823fae7403b709a6870947d53c411d731bc60/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34396236393634333931393532363931323062342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/codenix-sv/bittrex-api/maintainability)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://github.com/codenix-sv/bittrex-api/blob/master/LICENSE)[![Packagist](https://camo.githubusercontent.com/3e1db70464e5cceb7c94e96d304e2c79961cc9d825a128ba6fd03d7913693286/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656e69782d73762f626974747265782d617069)](https://camo.githubusercontent.com/3e1db70464e5cceb7c94e96d304e2c79961cc9d825a128ba6fd03d7913693286/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656e69782d73762f626974747265782d617069)

A simple PHP wrapper for [Bittrex API](https://bittrex.github.io/api/v1-1). Bittrex is the next generation crypto trading platform.

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

[](#requirements)

- PHP &gt;= 7.2
- ext-json
- [Bittrex account](https://global.bittrex.com/), API key and API secret

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

[](#installation)

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

Either run

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

or add

```
"codenix-sv/bittrex-api" : "^1.0"
```

to the require section of your application's `composer.json` file.

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

[](#basic-usage)

### Example

[](#example)

```
use Codenixsv\BittrexApi\BittrexClient;

$client = new BittrexClient();
$client->setCredential('API_KEY', 'API_SECRET');

$data = $client->public()->getMarkets();
```

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

[](#available-methods)

### Public API

[](#public-api)

#### Get the open and available trading markets

[](#get-the-open-and-available-trading-markets)

```
$data = $client->public()->getMarkets();
```

#### Get all supported currencies

[](#get-all-supported-currencies)

```
$data = $client->public()->getCurrencies();
```

#### Get the current tick values for a market

[](#get-the-current-tick-values-for-a-market)

```
$data = $client->public()->getTicker('BTC-LTC');
```

#### Get the last 24 hour summary of all active exchanges

[](#get-the-last-24-hour-summary-of-all-active-exchanges)

```
$data = $client->public()->getMarketSummaries();
```

#### Get the last 24 hour summary of all active exchanges for a market

[](#get-the-last-24-hour-summary-of-all-active-exchanges-for-a-market)

```
$data = $client->public()->getMarketSummary('BTC-LTC');
```

#### Get the orderbook for a given market

[](#get-the-orderbook-for-a-given-market)

```
$data = $client->public()->getOrderBook('BTC-LTC');
```

#### Get latest trades that have occurred for a specific market

[](#get-latest-trades-that-have-occurred-for-a-specific-market)

```
$data = $client->public()->getMarketHistory('BTC-LTC');
```

### Market API

[](#market-api)

#### Place a buy order in a specific market

[](#place-a-buy-order-in-a-specific-market)

```
$data = $client->market()->buyLimit('BTC-LTC', 1.2, 1.3);
```

#### Place a sell order in a specific market

[](#place-a-sell-order-in-a-specific-market)

```
$data = $client->market()->sellLimit('BTC-LTC', 1.2, 1.3);
```

#### Cancel a buy or sell order

[](#cancel-a-buy-or-sell-order)

```
$data = $client->market()->cancel('251c48e7-95d4-d53f-ad76-a7c6547b74ca9');
```

#### Get all orders that you currently have opened

[](#get-all-orders-that-you-currently-have-opened)

```
$data = $client->market()->getOpenOrders('BTC-LTC');
```

### Account API

[](#account-api)

#### Get all balances from your account

[](#get-all-balances-from-your-account)

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

#### Get balance from your account for a specific currency

[](#get-balance-from-your-account-for-a-specific-currency)

```
$data = $client->account()->getBalance('BTC');
```

#### Get or generate an address for a specific currency

[](#get-or-generate-an-address-for-a-specific-currency)

```
$data = $client->account()->getDepositAddress('BTC');
```

#### Withdraw funds from your account

[](#withdraw-funds-from-your-account)

```
$data = $client->account()->withdraw('BTC', 20.40, 'EAC_ADDRESS');
```

#### Get a single order by uuid

[](#get-a-single-order-by-uuid)

```
$data = $client->account()->getOrder('251c48e7-95d4-d53f-ad76-a7c6547b74ca9');
```

#### Get order history

[](#get-order-history)

```
$data = $client->account()->getOrderHistory('BTC-LTC');
```

#### Get withdrawal history

[](#get-withdrawal-history)

```
$data = $client->account()->getWithdrawalHistory('BTC');
```

#### Get deposit history

[](#get-deposit-history)

```
$data = $client->account()->getDepositHistory('BTC');
```

Further Information
-------------------

[](#further-information)

Please, check the [Bittrex site](https://bittrex.github.io/api/v1-1) documentation for further information about API.

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance47

Moderate activity, may be stable

Popularity38

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 98% 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 ~240 days

Total

5

Last Release

2126d ago

Major Versions

v0.2.0 → v1.0.02020-03-27

PHP version history (2 changes)v0.1.0PHP &gt;=7.1

v1.0.0PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![codenix-sv](https://avatars.githubusercontent.com/u/17989224?v=4)](https://github.com/codenix-sv "codenix-sv (49 commits)")[![hluchas](https://avatars.githubusercontent.com/u/12815758?v=4)](https://github.com/hluchas "hluchas (1 commits)")

---

Tags

bitcoinbittrexbittrex-apimarketphpapiclientrestexchangebittrexbittrex-api

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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