Download the PHP package apancutt/bitstamp-api without Composer

On this page you can find all versions of the php package apancutt/bitstamp-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of bitstamp-api with dependencies

Informations about the package bitstamp-api

Bitstamp API (PHP)

A PHP implementation for accessing the Bitstamp API.

WARNING: The Bitstamp API allows you to perform live transactions. This library is provided as-is, to use free of charge, and I will aim to keep it up-to-date with API changes. However, please remember that I will take no responsibility for the integrity or reliability of this library and will not be responsible for any damage or loss of earnings caused by the use of this library. Use at your own will.




Add the following dependency to your composer.json file:

"require": {
    "apancutt/bitstamp-api": "1.0.*"

Note that this library is currently under development so you will also need to add:

"minimum-stability": "dev"

Example Usage

// Path to the autoloader generated by Composer
require_once __DIR__ . "/../vendor/autoload.php";

// The HTTP request client, provided by panadas/module-httpclient
$request = new \Panadas\Module\HttpClient\Request();

// Alternatively, you can provide an instance of Panadas\Module\LoggerAbstract for log messages
$logger = new \Panadas\Module\Logger\Unbuffered();
$request = new \Panadas\Module\HttpClient\Request($logger);

// Your Bitstamp client/customer ID
$client_id = 0;

// You will need to generate API keys with the required access level using your
// account control panel:
$api_secret = "";
$api_key = "";

try {

    $client = new \Bitstamp\Api\Client($request, $client_id, $api_secret, $api_key);

    $balance = new \Bitstamp\Api\Endpoint\Balance($client))->execute();

    echo "You have {$balance->getBtcBalance()}BTC in your account\n";

} catch (\Exception $exception) {

    echo "{$exception->getMessage()} in {$exception->getFile()}:{$exception->getLine()}\n";


More information regarding the available endpoints can be found at:


If you would like to support this project, you are welcome to send a donation to 3Q4YPjpz7qbhaewdfCzHbry1v47wX5pWiX - your support and generosity is greatly appreciated.

Requires php Version >=5.4.0
panadas/module-httpclient Version 1.0.*

The package apancutt/bitstamp-api contains the following files

Loading the files please wait ....