PHPackages                             blockchainexorg/exchange - 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. blockchainexorg/exchange

ActiveLibrary[API Development](/categories/api)

blockchainexorg/exchange
========================

用于集成各个交易所对接

1.0.8(7y ago)029MITPHPPHP &gt;=5.4

Since Dec 14Pushed 7y ago1 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (11)Used By (0)

blockchainexorg/exchange
========================

[](#blockchainexorgexchange)

blockchainexorg/exchange用于集成对接各个主流交易所的开放接口

Ticker
------

[](#ticker)

获取ticker数据

支持平台：

```
coinsbank、oex、idcm、fatbtc、topbtc、coinsuper、mountaintoken、singbitx、hotbit、cointiger

```

调用示例：

```
use ExchangeCenter\Exchange;

try {
    $obj = new Exchange();
    $ticker = $obj->setExchange('coinsbank')
        ->setOptions([
            //如果需要设置代理，则传该参数
            'proxy' => [
                'http' => 'http://127.0.0.1:8001',
                'https' => 'http://127.0.0.1:8001',
            ]
        ])
        ->getTicker();
} catch(Exception $e) {
    var_dump($e->getMessage());
}

```

方法解释：

```
setExchange() 设置平台
setOptions()  设置选项信息

```

返回数据：

```
amount 24小时交易量
vol    24小时交易额
count  成交笔数
bid1   买一价
ask1   卖一价

```

```
array(12) {
    ["digital_currency"]=>
    string(3) "CSE"
    ["market_currency"]=>
    string(3) "BTC"
    ["open"]=>
    float(0.00011)
    ["high"]=>
    string(9) "0.0001167"
    ["low"]=>
    string(8) "0.000108"
    ["close"]=>
    string(8) "0.000114"
    ["amount"]=>
    float(7852.7652384739)
    ["vol"]=>
    float(0)
    ["count"]=>
    int(0)
    ["bid1"]=>
    float(0)
    ["ask1"]=>
    float(0)
    ["timestamp"]=>
    float(1545717241)
  }

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~1 days

Total

9

Last Release

2691d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d622625558bb286b7539b426a596cc87d215f8f76bb16ea2b83d4043ce77661?d=identicon)[tigerxu](/maintainers/tigerxu)

---

Top Contributors

[![HiTigerXu](https://avatars.githubusercontent.com/u/20093698?v=4)](https://github.com/HiTigerXu "HiTigerXu (1 commits)")

### Embed Badge

![Health badge](/badges/blockchainexorg-exchange/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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