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 2w 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 47% 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

2741d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4068301?v=4)[Zhuofei Xu](/maintainers/tigerxu)[@tigerxu](https://github.com/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

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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