如何在此 php 卷曲中设置 fixed_rate 布尔值 true
fixed_rate(可选) - 布尔值,可以是 true 或 false。返回可用货币以及最小和最大交换金额。
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.nowpayments.io/v1/currencies',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'x-api-key: <your_api_key>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response; Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
您应该将固定费率设置为 url 的参数。