定制 ricog/coinbase-exchange 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ricog/coinbase-exchange

最新稳定版本:v0.2.0

Composer 安装命令:

composer require ricog/coinbase-exchange

包简介

Coinbase Exchange API library

README 文档

README

A PHP library for communicating with the Coinbase Exchange.

WARNING: This is a work in progress. Some parts may not work as expected.

Installation

Composer Install

Require the library in your composer.json. (What is Composer?)

"require": {
    "ricog/coinbase-exchange": ">=0.1"
}

Manual Install

Download the latest release and require lib/CoinbaseExchange.php.

require_once('lib/CoinbaseExchange.php');

Usage

Detailed usage can be found in lib/CoinbaseExchange/CoinbaseExchange.php.

Public endpoints

Public endpoints do not require authentication.

$exchange = new CoinbaseExchange();
print_r($exchange->getTicker(), 1);

Private endpoints

Private endpoints require authentication. Create an API key at https://exchange.coinbase.com/settings.

$exchange = new CoinbaseExchange();
$exchange->auth('key', 'passphrase', 'secret');
$exchange->placeOrder('sell', '1200.01', '.25', 'BTC-USD');

Tests

Tests can be run with:

./test/runner.sh

TODO

  • Implement public endpoints.
  • Implement private trade enpoints.
  • Add tests (started).
  • Implement transfer endpoint.

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-29