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

ActiveLibrary[API Development](/categories/api)

vincenth520/bittrex
===================

bittrex Api SDK for PHP

1.0.0(8y ago)055MITPHPPHP &gt;=5.3.3

Since Oct 12Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

bittrex
=======

[](#bittrex)

[![Total Downloads](https://camo.githubusercontent.com/17038ef6e16b4fb60513542fb8f57ae08e035e9ff6d388a1d54bb17750f58004/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76696e63656e74683532302f626974747265782e737667)](https://packagist.org/packages/vincenth520/bittrex)[![License](https://camo.githubusercontent.com/0d4a6d6964b83c3b7e8bae133995f1b030b409c250915ad754fdc6e4243634ac/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f626974747265782d76312e312d627269676874677265656e2e737667)](https://bittrex.com/Home/Api)[![License](https://camo.githubusercontent.com/aafd9573705c3d7c64e01868eb1c3f0516e9f99aeb177b65d607a55330c66d9a/68747470733a2f2f706f7365722e707567782e6f72672f76696e63656e74683532302f626974747265782f6c6963656e73652e737667)](https://packagist.org/packages/vincenth520/bittrex)

安装
--

[](#安装)

- 通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令。SDK 包已经放到这里 [vincenth520/bittrex](https://packagist.org/packages/vincenth520/bittrex) 。

```
composer require vincenth520/bittrex

```

- 直接下载安装，SDK 没有依赖其他第三方库，但需要参照 composer的autoloader，增加一个自己的autoloader程序。

运行环境
----

[](#运行环境)

[![php-5.3](https://camo.githubusercontent.com/ed7700efbcdc74ed44a9ec48c2f2fde760991dc79eeb3f5f338833d0d9d1ccfa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e332d79656c6c6f77677265656e2e737667)](https://camo.githubusercontent.com/ed7700efbcdc74ed44a9ec48c2f2fde760991dc79eeb3f5f338833d0d9d1ccfa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e332d79656c6c6f77677265656e2e737667)

使用方法
----

[](#使用方法)

### 获取账户余额

[](#获取账户余额)

```
use Bittrex\Bittrex;

$apikey='';
$apisecret='';

$Bittrex = new Bittrex($apikey,$apisecret);

$balance = $Bittrex->getBalance();

var_dump($balance);
```

**打印**

```
array(1) {
  [3]=>
  array(5) {
    ["Currency"]=>
    string(3) "SPR"
    ["balance"]=>
    float(46.64854959)
    ["Last"]=>
    float(0.000145)
    ["estbtc"]=>
    float(0.00676403969055)
    ["estusd"]=>
    float(33.289356617836)
  }
}

```

### 获取币种当前行情

[](#获取币种当前行情)

```
use Bittrex\Bittrex;

$apikey='';
$apisecret='';

$Bittrex = new Bittrex($apikey,$apisecret);

$LTC = $Bittrex->getticker('BTC-LTC');
var_dump($LTC);
```

**打印**

```
array(3) {
  ["Bid"]=>
  float(0.01010001)
  ["Ask"]=>
  float(0.01011903)
  ["Last"]=>
  float(0.01010001)
}

```

### 获取比特币当前价格

[](#获取比特币当前价格)

```
use Bittrex\Bittrex;

$apikey='';
$apisecret='';

$Bittrex = new Bittrex($apikey,$apisecret);

$BTC = $Bittrex->getBtcPrice();
var_dump($BTC);
```

**打印**

```
float(5073.4288)

```

代码许可
----

[](#代码许可)

The MIT License (MIT).详情见 [License文件](https://github.com/vincenth520/bittrex/blob/master/LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42fa43596d7601bfb3754787ed10af15ca800c3484db20d0919fe9905b0546c6?d=identicon)[vincenth520](/maintainers/vincenth520)

---

Top Contributors

[![vincenth520](https://avatars.githubusercontent.com/u/12945328?v=4)](https://github.com/vincenth520 "vincenth520 (19 commits)")

---

Tags

bittrexbittrex-apiphpapibitcoinbittrex

### Embed Badge

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

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

###  Alternatives

[blocktrail/blocktrail-sdk

The BlockTrail PHP SDK, for integration of Bitcoin functionality through the BlockTrail API

4921.1k3](/packages/blocktrail-blocktrail-sdk)

PHPackages © 2026

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