samyan/coinbase-pro

Coinbase Pro client

1.1 2020-12-18 20:38 UTC

This package is auto-updated.

Last update: 2024-04-19 03:50:10 UTC


README

Latest Stable Version Total Downloads License

Coinbase Pro basic client for PHP 7.0+

Installation

Require the package in composer.json

"require": {
    "samyan/coinbase-pro": "1.*"
},

Basic usage

use Samyan\ApiAuth;
use Samyan\Coinbase;

$auth = new ApiAuth('YOUR_API_KEY', 'YOUR_SECRET_KEY', 'YOUR_PASSPHRASE');
$coinbaseClient = new Coinbase($auth, false, false);

$result = $coinbaseClient->withdrawal('0.05', 'BTC', 'bc1qzep2wle7f9ane6aa2kchvnu5r2z4340h09ypx7');

List of implemented API

  • getServerTime
  • listAccounts
  • getAccount
  • getCurrentExchangeLimits
  • listWithdrawals
  • getWithdrawal
  • withdrawal
  • getFeeEstimate