首页 > 解决方案 > 谷歌金融 getprices URL 通过浏览器工作,但自 2018 年 8 月 3 日起无法工作

问题描述

谷歌金融 getprices URL 通过浏览器工作,但自 2018 年 8 月 3 日起无法工作任何解决方案为什么

我也在 PHP 中以编程方式检查过

<?php
$arrContextOptions=array(
            "ssl"=>array(
                "verify_peer"=>false,
                "verify_peer_name"=>false,
            ),
        );  

$URL = 'https://finance.google.com/finance/getprices?f=d,c,v,k,o,h,l&p=60&x=NSE&q=ITC&i=60;
$filecontent = file_get_contents( $URL , false, stream_context_create($arrContextOptions));


print_r($filecontent);
?>

一般来说,这会给我时间戳、打开、高、低、关闭、文本格式的交易量数据,但这现在不起作用。

标签: phpgoogle-financegoogle-finance-api

解决方案


推荐阅读