for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace R3bers\BittrexApi\Api;
use Exception;
/**
* Class PublicApi
* @package R3bers\BittrexApi\Api
*/
class PublicApi extends Api
{
* @return array
* @throws Exception
public function getMarkets(): array
return $this->rest('GET', '/markets');
}
public function getCurrencies(): array
return $this->rest('GET', '/currencies');
* @param string $market
public function getTicker(string $market): array
return $this->rest('GET', '/markets/' . $market . '/ticker');
public function getMarketSummaries(): array
return $this->rest('GET', '/markets/summaries');
public function getMarketSummary(string $market): array
return $this->rest('GET', '/markets/' . $market . '/summary');
* @param int $depth
public function getOrderBook(string $market, $depth = 25): array
$options = ['query' => ['depth' => $depth]];
return $this->rest('GET', '/markets/' . $market . '/orderbook', $options);
public function getMarketHistory(string $market)
return $this->rest('GET', '/markets/' . $market . '/trades');
public function ping(): array
return $this->rest('GET', '/ping');