A PHP library for working w/ the Bitstamp API.
Normal install via Composer.
Call the desired method and pass the params as a single array.
$response = Travis\Bitstamp::ticker();See Bitstamp for full list of available methods.
Some methods require authentication. You are required to submit, at minimum, the key, nonce, and signature values.
$id = 'your_account_id';
$key = 'your_api_key';
$secret = 'your_api_secret_key';
$nonce = Travis\Bitstamp::nonce();
$response = Travis\Bitstamp::balance(array(
'key' => $key,
'nonce' => $nonce,
'signature' => Travis\Bitstamp::sign($id, $key, $secret, $nonce),
// ... any other arguments ...
));This library contains helper methods nonce() and sign() to aid in generating the signature.