首页 基金行情查询 基金行情查询示例代码 基金详情[Python]

基金详情示例代码Python

作者: 阅读数:6149 上传时间:2026-05-26

基金详情

#!/usr/bin/python
# encoding:utf-8

import requests

data = {"code":"018957"}
data["appkey"] = "your_appkey_here"
url = "https://api.jisuapi.com/fund/detail"
response = requests.get(url,params=data)
jsonarr = response.json()
if jsonarr["status"] != 0:
    print(jsonarr["msg"])
    exit()
result = jsonarr["result"]
for val in result:
    print(val)