Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $apikey=$datos[$i]->api_key;
  2. $secreat_key=$datos[$i]->security_key;
  3. // $nonce = time();
  4. $uri='https://bittrex.com/api/v1.1/account/getbalances?apikey='.$apikey.'&nonce='.'';
  5. $sign = hash_hmac('sha512',$uri,$secreat_key);
  6. $ch = curl_init($uri);
  7. curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
  8. //$execResult = curl_exec($ch);
  9. $obj=json_decode(curl_exec($ch));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement