呼叫價格
10 匠幣/次
快速接入
保持統一返回結構,直接透過服務端發起請求即可接入。
POST
https://openapi.toolkk.com/v1/fund-detailcURL 示例
curl --request POST \
--url 'https://openapi.toolkk.com/v1/fund-detail' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "fundCode": "基金代码"\n}'Python 示例
import os
import requests
url = "https://openapi.toolkk.com/v1/fund-detail"
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())Go 示例
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/fund-detail"
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))
}Java 示例
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-detail"))
.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 示例
<?php
$endpoint = 'https://openapi.toolkk.com/v1/fund-detail';
$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;響應示例
[
{
"birthday": "",
"gmtModified": 1722464822000,
"gender": "1",
"educationLevel": "硕士",
"background": " 张璐,男,中国籍,10年证券从业经历,上海交通大学硕士研究生XXXXXXX",
"name": "张璐",
"managerId": "101014393",
"gmtCreate": 1564740005000,
"incumbent": false
}
]範例用於理解回傳結構,實際結果以介面回傳為準。
- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 60 次/分鐘
- 超時時間
- 5000 ms
接入建議
服務端呼叫時,將 API Key 放在 X-API-Key 請求頭中。
建議按 response code 與業務欄位雙重判斷呼叫結果。
高頻呼叫場景請結合速率限制與重試策略使用。
請求欄位
從伺服器發起請求,並在 X-API-Key 標頭中傳入金鑰。
請求欄位
欄位來自介面結構定義。未提供的說明和範例會標為未標註。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| fundCode | string | 是 | 基金代码 | 未標註 |
請求示例
{
"fundCode": "基金代码"
}- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 60 次/分鐘
- 超時時間
- 5000 ms
響應欄位
範例用於理解回傳結構,實際結果以介面回傳為準。
響應欄位
欄位來自介面結構定義。未提供的說明和範例會標為未標註。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| [] | object | 未標註 | 未標註 | 未標註 |
| [].birthday | string | 否 | 出生日期 | 未標註 |
| [].gmtModified | number | 否 | 更新日期 | 1722464822000 |
| [].gender | string | 否 | 性别:1男,2女 | 1 |
| [].educationLevel | string | 否 | 最高学历 | 硕士 |
| [].background | string | 否 | 背景介绍 | 张璐,男,中国籍,10年证券从业经历,上海交通大学硕士研究生XXXXXXX |
| [].name | string | 否 | 姓名 | 张璐 |
| [].managerId | string | 否 | 经理编号 | 101014393 |
| [].gmtCreate | number | 否 | 任职日期 | 1564740005000 |
| [].incumbent | boolean | 否 | 离职状态:在职false,离职true | false |
響應示例
[
{
"birthday": "",
"gmtModified": 1722464822000,
"gender": "1",
"educationLevel": "硕士",
"background": " 张璐,男,中国籍,10年证券从业经历,上海交通大学硕士研究生XXXXXXX",
"name": "张璐",
"managerId": "101014393",
"gmtCreate": 1564740005000,
"incumbent": false
}
]介面簡介
介面功能、應用情境、使用限制與常見問題。
介面簡介
本介面提供基於基金程式碼的基金經理基礎資料查詢服務。輸入目標基金的唯一程式碼,系統將返回該基金現任或歷任經理的詳細檔案,包括姓名、性別、最高學歷、從業背景介紹、任職日期及當前在職狀態等結構化資料。
適用場景
- 金融終端展示:在理財APP或網站中展示基金產品的管理團隊詳情。
- 投研資料分析:量化分析基金經理的從業年限、學歷分佈與業績關聯性。
- 合規風控審查:快速核實基金管理人的身份背景及當前任職有效性。
請求與返回說明
- 請求方式:POST
- 核心引數:
fundCode(字串,必填),即目標基金的6位程式碼。 - 返回結果:JSON陣列,包含經理物件。主要欄位包括
name(姓名)、educationLevel(學歷)、background(背景介紹)、gmtCreate(任職時間戳)、incumbent(是否在職)等。