delboy1978uk/btc-exchange
最新稳定版本:v0.1.1
Composer 安装命令:
composer require delboy1978uk/btc-exchange
包简介
A PHP Service for connecting to various Bitcoin exchange API's
README 文档
README
a btcexchange PHP setup for writing a new Github project with Composer and Packagist complete with travis builds and scrutinizer code coverage & quality analysis
A PHP Service for connecting to various Bitcoin exchange API's
##Installation
composer require delboy1978uk/btcexchange
##Usage
use Del\BTCTradeApi; $settings = [ 'btce' => [ 'key' => 'blah', 'secret' => 'blah', ], 'kraken' => [ 'key' => 'blah', 'secret' => 'blah', ], //etc. BTC-e is the only API currently written, more coming soon ] $api = new BTCTradeApi($settings); $btce = $api->getBtcEExchange(); $result = $btce->buyOrder(3.2, 240.221); // Buy 3.2BTC at a price of $240.221 per Bitcoin
###API Methods
$btce->buyOrder($btc_amt, $price); $btce->cancelOrder($id); $btce->getInfo(); $btce->getOrders(); $btce->getTicker(); $btce->getTradeHistory(); $btce->getTransactionHistory(); $btce->sellOrder($btc_amt, $price);
统计信息
- 总下载量: 69
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-28