From 0a7c8adaaf5341c1b4fc27239624325a90b1ebc9 Mon Sep 17 00:00:00 2001 From: hamza Date: Fri, 5 Sep 2014 17:39:30 +0500 Subject: [PATCH] Added new functions like withdraw from Bitstamp to another Bitcoin Wallet --- bitstamp.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/bitstamp.php b/bitstamp.php index 5af8353..c581b53 100755 --- a/bitstamp.php +++ b/bitstamp.php @@ -226,4 +226,44 @@ private function get_signature($nonce) return strtoupper(hash_hmac('sha256', $message, $this->secret)); } + + /** + * Bitstamp::user_transactions() + * List of Transactions + * @return Array containing List of Transactions + */ + function user_transactions() + { + + return $this->bitstamp_query('user_transactions'); + + } + + /** + * Bitstamp::withdrawBTC() + * Transfer from Bitstamp to another Bitcoin Wallet + * @param float $amount + * @param Bitcoin Wallet address + * @return transaction id + * Minimum Transaction amount 0.0005 BTC + */ + function withdrawBTC($amount, $address) + { + + return $this->bitstamp_query('bitcoin_withdrawal', array('amount' => $amount,'address' => $address)); + + } + + /** + * Bitstamp::withdrawal_requests() + * List of Withdrawal Requests + * @return Array containing List of Withdrawal Requests + */ + function withdrawal_requests() + { + + return $this->bitstamp_query('withdrawal_requests', array()); + + } + }