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->get('/public/getmarkets');
}
public function getCurrencies(): array
return $this->get('/public/getcurrencies');
* @param string $market
public function getTicker(string $market): array
$parameters = ['market' => $market];
return $this->get('/public/getticker', $parameters);
public function getMarketSummaries(): array
return $this->get('/public/getmarketsummaries');
public function getMarketSummary(string $market): array
return $this->get('/public/getmarketsummary', $parameters);
* @param string $type
public function getOrderBook(string $market, $type = 'both'): array
$parameters = ['market' => $market, 'type' => $type];
return $this->get('/public/getorderbook', $parameters);
public function getMarketHistory(string $market)
return $this->get('/public/getmarkethistory', $parameters);