Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
Added missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
edsonmedina committed Sep 14, 2014
1 parent 2afb9c3 commit 65159e6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/edsonmedina/bittrex/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,52 @@ public function getOrderHistory ($market = null, $count = null)

return $this->callAccount ('getorderhistory'.$params);
}

/**
* Retrieve your withdrawal history
* @param string $currency (optional) a string literal for the currecy (ie. BTC). If omitted, will return for all currencies
* @param integer $count (optional) the number of records to return
* @return array
*/
public function getWithdrawalHistory ($currency = null, $count = null)
{
$params = '';
$separator = '?';

if ($currency) {
$params .= $separator.'currency='.$currency;
$separator = '&';
}

if ($count) {
$params .= $separator.'count='.$count;
}

return $this->callAccount ('getwithdrawalhistory'.$params);
}

/**
* Retrieve your deposit history
* @param string $currency (optional) a string literal for the currecy (ie. BTC). If omitted, will return for all currencies
* @param integer $count (optional) the number of records to return
* @return array
*/
public function getDepositHistory ($currency = null, $count = null)
{
$params = '';
$separator = '?';

if ($currency) {
$params .= $separator.'currency='.$currency;
$separator = '&';
}

if ($count) {
$params .= $separator.'count='.$count;
}

return $this->callAccount ('getdeposithistory'.$params);
}
}

// vim: noexpandtab

0 comments on commit 65159e6

Please sign in to comment.