I am trying to get the v3 api working in PHP, can you please help me work out what I am doing wrong?
The current response I am getting is "UNAUTHORIZED", (the old v1.1 works with the api key and secret I have).
$timestamp = time()*1000;
$url = "https://api.bittrex.com/v3/balances";
$method = "GET";
$contentHash = hash('sha512', '');
$auth = $timestamp . $url . $method . $contentHash;
$sign=hash_hmac('sha512',$auth,$apisecret);
$headers = array (
'Api-Key' => $apikey,
'Api-Timestamp' => $timestamp,
'Api-Content-Hash' => $contentHash,
'Api-Signature' => $sign,
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$execResult = curl_exec($ch);
curl_close($ch);
$obj = json_decode($execResult, TRUE);