"https://api.ineo-team.ir/nobitex.php", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => ['currency' => $currency, 'accessKey' => API_KEY], ]); $response = curl_exec($curl); curl_close($curl); return json_decode($response); } # Select a Currency: echo json_encode(nobitex("btc")->result->btc->rls); # Show all supported Currency: echo json_encode(nobitex()->result); unlink("error_log"); ?>