Skip to content

Instantly share code, notes, and snippets.

@davidcorbin
Created December 26, 2014 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcorbin/9e5c680f066d5099d717 to your computer and use it in GitHub Desktop.
Save davidcorbin/9e5c680f066d5099d717 to your computer and use it in GitHub Desktop.
HitBTC public API using PHP and Curl
<?php
$curl = curl_init("http://api.hitbtc.com/api/1/public/BTCUSD/orderbook");
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
$resultobject = json_decode($result));
print_r($resultobject);
curl_close($curl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment