bitbuy-at/bitstamp-api-client
Composer 安装命令:
composer require bitbuy-at/bitstamp-api-client
包简介
Client for Bitstamp.net HTTP API v2 with support for Laravel
README 文档
README
This project is only supporting a selected choice of api calls to the bitstamp api, feel free to contribute!
bitstamp-api-client
Client for Bitstamp.net HTTP API v2 with support for Laravel
The structure of this package was strongly influenced by the design of the kraken-api-client from Butschster.
Install
composer require bitbuy-at/bitstamp-api-client
Laravel
Laravel 5.5+
If you're using Laravel 5.5 or above, the package will automatically register the Bitstamp provider and facade.
Laravel 5.4 and below
Add bitbuyAT\Bitstamp\BitstampServiceProvider to the providers array in your config/app.php:
'providers' => [ // Other service providers... bitbuyAT\Bitstamp\BitstampServiceProvider::class, ],
If you want to use the facade interface, you can use the facade class when needed:
use bitbuyAT\Bitstamp\Facade\Bitstamp;
Or add an alias in your config/app.php:
'aliases' => [ ... 'Bitstamp' => bitbuyAT\Bitstamp\Facade\Bitstamp::class, ],
Configuration
You can update your .env file with the following settings (only needed for private calls):
BITSTAMP_KEY=key
BITSTAMP_SECRET=secret
BITSTAMP_CUSTOMER_ID=customer-id
Usage
Get current prices
use bitbuyAT\Bitstamp\Facade\Bitstamp; $prices = Bitstamp::getTicker($tradingPair); $prices->getData(); $prices->askPrice(); $prices->bidPrice();
More examples can be found in the /tests folder.
Supported Methods
All currently supported methods with params explanation can be found in the client interface (src/Contracts/Client.php).
Do you need any further method, which is not listed here? Just open an issue with the required method or even better open a PR to speed things up!
Contributing
Want to contribute? Great!
Create a new issue first, describing the feature or bug.
Just fork our code, make your changes, then let us know and we will review it.
- Fork it.
- Create a feature branch (git checkout -b my_feature)
- Commit your changes (git commit -m "Added My Feature")
- Push to the branch (git push origin my_feature)
- Open a Pull Request
- Enjoy and wait ;)
We are constantly updating and improving our code. We hope it can be for the benefit of the entire community.
License
MIT License
Please check LICENSE.txt
Visit us
bitbuy GmbH / bitcoin.wien (https://www.bitcoin.wien/)
bitbuy-at/bitstamp-api-client 适用场景与选型建议
bitbuy-at/bitstamp-api-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 92 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「rest」 「http client」 「api」 「client」 「bitstamp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bitbuy-at/bitstamp-api-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bitbuy-at/bitstamp-api-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bitbuy-at/bitstamp-api-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
Mock PSR-18 HTTP client
Asynchronous MQTT client built on React
http客户端
统计信息
- 总下载量: 92
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-18