Guest User

Untitled

a guest
Jul 23rd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. $apikey='xxx';
  2. $apisecret='xxx';
  3. $nonce=time();
  4. $uri='https://bittrex.com/api/v1.1/market/getopenorders?apikey='.$apikey.'&nonce='.$nonce;
  5. $sign=hash_hmac('sha512',$uri,$apisecret);
  6. $ch = curl_init($uri);
  7. curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
  8. $execResult = curl_exec($ch);
  9. $obj = json_decode($execResult);
Add Comment
Please, Sign In to add comment