首页 期货查询 期货查询示例代码 期货历史查询[PHP]

期货历史查询示例代码PHP

作者: 阅读数:3029 上传时间:2026-06-12

期货历史查询

$url = "https://api.jisuapi.com/futures/history?market=shfutures&type=SC2703&startdate=2026-06-01&enddate=2026-06-10&appkey=yourappkey";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
curl_close($ch);
$data = json_decode($result, true);
print_r($data);