Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $uri='https://bittrex.com/api/v1.1/market/getopenorders?apikey='.$apikey.'&nonce='.$nonce;
- $sign=hash_hmac('sha512',$uri,$apisecret);
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $uri);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign));
- $execResult = curl_exec($ch);
- //curl_close($execResult);
- $test = file_get_contents($execResult);
- $obj = json_decode($execResult);
- echo $obj;
- var_dump($test, $obj, $execResult, $uri);
- if(!curl_exec($ch)){
- die('Error: "' . curl_error($ch) . '" - Code: ' . curl_errno($ch));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement