PHPackages                             messerli90/bittrex - 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. messerli90/bittrex

ActiveWrapper[API Development](/categories/api)

messerli90/bittrex
==================

Laravel Bittrex API wrapper / facade

53934PHPCI failing

Since Oct 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/messerli90/bittrex)[ Packagist](https://packagist.org/packages/messerli90/bittrex)[ RSS](/packages/messerli90-bittrex/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bittrex
=======

[](#bittrex)

[![Build Status](https://camo.githubusercontent.com/bbd405b08d734011605ee381d4290bdbeb6a77397714e9918f9d043eac358b17/68747470733a2f2f7472617669732d63692e6f72672f6d65737365726c6939302f626974747265782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/messerli90/igdb)[![Built For Laravel](https://camo.githubusercontent.com/5dc33dc453936987e8423b2e93ebdb1955ecc7187cc664824ca4a957aecb85c2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c74253230666f722d6c61726176656c2d626c75652e737667)](http://laravel.com)[![License](https://camo.githubusercontent.com/6d95ffe9415ab1c9e76eb3825ce99dd60a84398a74c360b98c95e60eca6515f4/68747470733a2f2f706f7365722e707567782e6f72672f6d65737365726c6939302f696764622f6c6963656e7365)](https://packagist.org/packages/messerli90/igdb)[![Total Downloads](https://camo.githubusercontent.com/5a4977d485656cc37142e148b893648166d6a3b5dc14470ff621b4e49bd874ff/68747470733a2f2f706f7365722e707567782e6f72672f6d65737365726c6939302f626974747265782f646f776e6c6f616473)](https://packagist.org/packages/messerli90/bittrex)

Introduction
------------

[](#introduction)

This packages provides a nice and easy wrapper around the [Bittrex API](https://bittrex.com/) for use in your Laravel application.

In order to use the Bittrex API, you must have an account and API keys.

Example
-------

[](#example)

Retrieve your balance statements for all coins

```
use Messerli90\Bittrex\Bittrex;

$bittrex = new Bittrex(config('services.bittrex.key'), config('services.bittrex.secret'));

$balances = $bittrex->getBalances();

return $balances;
```

```
{
  "success": true,
  "message": "",
  "result": [
    {
      "Currency": "BTC",
      "Balance": 2.20529678,
      "Available": 2.20529678,
      "Pending": 0,
      "CryptoAddress": null
    },
    {
      "Currency": "LTC",
      "Balance": 12.96782052,
      "Available": 12.96782052,
      "Pending": 0,
      "CryptoAddress": null
    }
  ]
}
```

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

[](#installation)

Add `messerli90/bittrex` to your `composer.json`.

```
"messerli90/bittrex": "~1.0"

```

or

```
composer require messerli90/bittrex
```

Run `composer update` to pull down the latest version of the package.

Now open up `app/config/app.php` and add the service provider to your `providers` array.

```
'providers' => array(
    Messerli90\Bittrex\BittrexServiceProvider::class,
)
```

Optionally, add the facade to your `aliases` array

```
'Bittrex' => \Messerli90\Bittrex\Facades\Bittrex::class,
```

Configuration
-------------

[](#configuration)

Add the `bittrex` to your `config/services.php` array

```
'bittrex' => [
    'key' => 'YOUR_API_KEY',
    'secret' => 'YOUR_API_SECRET'
]
```

Usage
-----

[](#usage)

```
use Messerli90\Bittrex\Bittrex;

$bittrex = new Bittrex(config('services.bittrex.key'), config('services.bittrex.secret'));
```

### Public API

[](#public-api)

```
// Used to get the open and available trading markets at Bittrex along with other meta data.
$bittrex->getMarkets();

// Used to get all supported currencies at Bittrex along with other meta data.
$bittrex->getCurrencies();

// Used to get the current tick values for a market.
$bittrex->getTicker('BTC-LTC');

// Used to get the last 24 hour summary of all active exchanges
$bittrex->getMarketSummaries();

// Used to get the last 24 hour summary of all active exchanges
$bittrex->getMarketSummary('BTC-LTC');

// Used to get retrieve the orderbook for a given market
$bittrex->getOrderBook('BTC-LTC', 'both');

// Used to retrieve the latest trades that have occured for a specific market.
$bittrex->getMarketHistory('BTC-LTC');
```

### Market

[](#market)

```
// Used to place a buy order in a specific market. Use buylimit to place limit orders. Make sure you have the proper permissions set on your API keys for this call to work
$bittrex->buyLimit('BTC-LTC', 1.2, 1.3);

// Used to place an sell order in a specific market. Use selllimit to place limit orders.
$bittrex->sellLimit('BTC-LTC', 1.2, 1.3);

// Used to cancel a buy or sell order.
$bittrex->cancel('ORDER_UUID');

// Get all orders that you currently have opened. A specific market can be requested
$bittrex->getOpenOrders('BTC-LTC');
```

### Account

[](#account)

```
// Used to retrieve all balances from your account
$bittrex->getBalances();

// Used to retrieve the balance from your account for a specific currency.
$bittrex->getBalance('BTC');

// Used to retrieve or generate an address for a specific currency. If one does not exist, the call will fail and return ADDRESS_GENERATING until one is available.
$bittrex->getDepositAddress('BTC');

// Used to withdraw funds from your account. note: please account for txfee.
$bittrex->withdraw('BTC', 1, 'BTC-ADDRESS');

// Used to retrieve all balances from your account
$bittrex->getBalances();

// Used to retrieve a single order by uuid.
$bittrex->getOrder('0cb4c4e4-bdc7-4e13-8c13-430e587d2cc1');

// Used to retrieve your order history.
$bittrex->getOrderHistory('BTC-LTC');

// Used to retrieve your withdrawal history.
$bittrex->getWithdrawalHistory('BTC');

// Used to retrieve your deposit history.
$bittrex->getDepositHistory('BTC');
```

Format of returned data
-----------------------

[](#format-of-returned-data)

The returned JSON data is decoded as a PHP object.

Run Unit Test
-------------

[](#run-unit-test)

If you have PHPUnit installed in your environment, run:

```
$ phpunit
```

IGDB API
--------

[](#igdb-api)

- [Bittrex API Docs](https://bittrex.com/Home/Api)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Michael Messerli](https://twitter.com/michaelmesserli)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5610c036d16dc5e1119c90d937e70f9cbf605d823abb3ff30dd1cf5faf910a2?d=identicon)[messerli90](/maintainers/messerli90)

---

Top Contributors

[![messerli90](https://avatars.githubusercontent.com/u/3306651?v=4)](https://github.com/messerli90 "messerli90 (3 commits)")[![jestersimpps](https://avatars.githubusercontent.com/u/6909198?v=4)](https://github.com/jestersimpps "jestersimpps (1 commits)")[![sumihiro](https://avatars.githubusercontent.com/u/98380?v=4)](https://github.com/sumihiro "sumihiro (1 commits)")

---

Tags

bitcoinbittrexcryptocurrencylaravelwrapper-api

### Embed Badge

![Health badge](/badges/messerli90-bittrex/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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