POSTfund-manager-history
基金历任经理
基金历任经理
10 匠币/次
接入文档
接口简介
本接口提供基金历任经理的历史数据查询服务。开发者传入标准基金代码,即可获取该基金过往所有基金经理的详细信息,包括姓名、唯一ID、头像(Base64格式)、上任日期以及任职期间的累计收益率。
基金历任经理
10 匠币/次
本接口提供基金历任经理的历史数据查询服务。开发者传入标准基金代码,即可获取该基金过往所有基金经理的详细信息,包括姓名、唯一ID、头像(Base64格式)、上任日期以及任职期间的累计收益率。
fundCode(字符串,必填),即需要查询的基金代码。code/msg:接口状态码及描述。data:包含以数字索引(如"0", "1")排列的历任经理对象数组。name:经理姓名数组。gmtCreate:上任日期(格式 YYYY-MM-DD)。gmtGrowth:任职收益率(数值类型,单位%)。avatar:经理头像 Base64 字符串数组。id:经理唯一标识 ID 数组。data 对象使用数字键名排序,建议转换为数组处理以保持时间顺序。avatar 字段返回 Base64 编码图片,前端可直接用于 <img> 标签 src 属性,注意缓存优化。code 是否为 200,非成功状态需根据 msg 提示用户或记录日志。提供 Shell、Python、Go、Java、PHP 等常见接入示例,便于直接接到现有项目里。
{
"fundCode": "基金代码"
}{
"code": 200,
"msg": "成功",
"taskNo": "492823910191448773171202",
"data": {
"0": {
"name": [
"张璐"
],
"avatar": [
"data:image/jpg;base64,iVBORw0KGgoxxxxx"
],
"id": [
"145420292ef07aceb559cc8b7b7cd97a"
],
"gmtGrowth": -18.55,
"gmtCreate": "2023-05-04"
}
}
}以下字段根据示例 JSON 自动提取,仅作接入参考。
| 字段路径 | 类型 | 示例值 |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.fundCode | object | {...} |
| properties.fundCode.type | string | string |
| properties.fundCode.description | string | 基金代码 |
| required | array | "fundCode" |
| required[] | string | fundCode |
以下字段根据示例 JSON 自动提取,仅作接入参考。
| 字段路径 | 类型 | 示例值 |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.code | object | {...} |
| properties.code.type | string | number |
| properties.code.example | number | 200 |
| properties.code.description | string | 返回码,详见返回码说明 |
| properties.msg | object | {...} |
curl --request POST \
--url 'https://openapi.toolkk.com/v1/fund-manager-history' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "fundCode": "基金代码"\n}'import os
import requests
url = "https://openapi.toolkk.com/v1/fund-manager-history"
payload = {
"fundCode": "基金代码"
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/fund-manager-history"
payload := []byte("{\n \"fundCode\": \"基金代码\"\n}")
req, err := http.NewRequest("POST", endpoint, bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ToolkkExample {
public static void main(String[] args) throws Exception {
String payload = "{\n \"fundCode\": \"基金代码\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/fund-manager-history"))
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.header("Content-Type", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}<?php
$endpoint = 'https://openapi.toolkk.com/v1/fund-manager-history';
$payload = "{\n \"fundCode\": \"基金代码\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
curl_close($ch);
echo $response;| properties.msg.type |
| string |
| string |
| properties.msg.example | string | 成功 |
| properties.msg.description | string | 返回码对应描述 |
| properties.taskNo | object | {...} |
| properties.taskNo.type | string | string |
| properties.taskNo.example | string | 492823910191448773171202 |
| properties.taskNo.description | string | 本次请求号 |
| properties.data | object | {...} |
| properties.data.type | string | object |