■目次
PHP|coincheckのAPIから、BTC/円の価格を取得する
スポンサーリンク
BTC/円のレート取得方法
APIをfile_get_contents()で取得するのはあまり推奨されていないですが、ひとまずBTC/円のレート取得方法を記載しています。
$result = file_get_contents('https://coincheck.com/api/rate/btc_jpy'); $result = json_decode($result); echo $result->rate;
更新日:2018年08月26日
作成日:2018年05月27日