@@ -931,17 +931,17 @@ def _get_stock_realtime_quote_sina(self, stock_code: str) -> Optional[UnifiedRea
931931 优点:单股票查询,负载小,速度快
932932 缺点:数据字段较少,无量比/PE/PB等
933933
934- 接口格式:http ://hq.sinajs.cn/list=sh600519,sz000001
934+ 接口格式:https ://hq.sinajs.cn/list=sh600519,sz000001
935935 """
936936 circuit_breaker = get_realtime_circuit_breaker ()
937937 source_key = "akshare_sina"
938938 symbol = _to_sina_tx_symbol (stock_code )
939- url = f"http ://{ SINA_REALTIME_ENDPOINT } ={ symbol } "
939+ url = f"https ://{ SINA_REALTIME_ENDPOINT } ={ symbol } "
940940 api_start = time .time ()
941941
942942 try :
943943 headers = {
944- 'Referer' : 'http ://finance.sina.com.cn' ,
944+ 'Referer' : 'https ://finance.sina.com.cn' ,
945945 'User-Agent' : random .choice (USER_AGENTS )
946946 }
947947
@@ -1082,17 +1082,17 @@ def _get_stock_realtime_quote_tencent(self, stock_code: str) -> Optional[Unified
10821082 优点:单股票查询,负载小,包含换手率
10831083 缺点:无量比/PE/PB等估值数据
10841084
1085- 接口格式:http ://qt.gtimg.cn/q=sh600519,sz000001
1085+ 接口格式:https ://qt.gtimg.cn/q=sh600519,sz000001
10861086 """
10871087 circuit_breaker = get_realtime_circuit_breaker ()
10881088 source_key = "akshare_tencent"
10891089 symbol = _to_sina_tx_symbol (stock_code )
1090- url = f"http ://{ TENCENT_REALTIME_ENDPOINT } ={ symbol } "
1090+ url = f"https ://{ TENCENT_REALTIME_ENDPOINT } ={ symbol } "
10911091 api_start = time .time ()
10921092
10931093 try :
10941094 headers = {
1095- 'Referer' : 'http ://finance.qq.com' ,
1095+ 'Referer' : 'https ://finance.qq.com' ,
10961096 'User-Agent' : random .choice (USER_AGENTS )
10971097 }
10981098
0 commit comments