diff --git a/src/Hitbtc/PublicClient.php b/src/Hitbtc/PublicClient.php index 4ac08e3..bb6fb2e 100644 --- a/src/Hitbtc/PublicClient.php +++ b/src/Hitbtc/PublicClient.php @@ -26,6 +26,7 @@ public function getHttpClient() if (!$this->httpClient) { $this->httpClient = new HttpClient([ 'base_uri' => $this->host, + 'verify' => false ]); } @@ -42,4 +43,15 @@ public function getTickers() { return json_decode($this->getHttpClient()->get('/api/1/public/ticker')->getBody(), true); } + + /* + * Get list of an active order book in the market + * + * @param string $ticker + * return @array + */ + public function getOderBook($ticker) + { + return json_decode($this->getHttpClient()->get('/api/1/public/'.$ticker.'/orderbook')->getBody(), true); + } }