Bitcoin Forum
July 23, 2024, 08:12:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bittrex API "INVALID_PERMISSION" error  (Read 1112 times)
ShopemNL (OP)
Legendary
*
Offline Offline

Activity: 1025
Merit: 1001



View Profile WWW
October 06, 2014, 12:57:38 PM
 #1

Hi there,

Working with the bittrex api i get the following {"success":false,"message":"INVALID_PERMISSION","result":null}"

The code i use :

$nonce=time();
$uri='https://bittrex.com/api/v1.1/account/getbalance?apikey='.$apikey.'&currency=BTC&nonce='.$nonce;
$sign = hash_hmac('sha512', $uri, $apisecret);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE);
$response = curl_exec($ch);
print_r($response);

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!