分红记录
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/dividends \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/dividends"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.tickdb.ai/v1/fundamentals/dividends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tickdb.ai/v1/fundamentals/dividends",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tickdb.ai/v1/fundamentals/dividends"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tickdb.ai/v1/fundamentals/dividends")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/dividends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 0,
"data": {
"symbol": "<string>",
"events": [
{
"event_id": "<string>",
"type": "normal",
"distribution_kind": "cash",
"description": "<string>",
"amount": "<string>",
"stock_distribution_ratio": "<string>",
"currency": "<string>",
"declaration_date": "2023-12-25",
"record_date": "2023-12-25",
"ex_date": "2023-12-25",
"payment_date": "2023-12-25",
"detail_level": "summary"
}
]
},
"page": {
"next_cursor": "<string>",
"limit": 2
}
}分红与公司行动
分红记录
查询股票的分红记录,包括历史及已知的未来分红事件,支持日期、类型和分页筛选。
GET
/
v1
/
fundamentals
/
dividends
分红记录
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/dividends \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/dividends"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.tickdb.ai/v1/fundamentals/dividends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tickdb.ai/v1/fundamentals/dividends",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tickdb.ai/v1/fundamentals/dividends"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.tickdb.ai/v1/fundamentals/dividends")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/dividends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"code": 0,
"data": {
"symbol": "<string>",
"events": [
{
"event_id": "<string>",
"type": "normal",
"distribution_kind": "cash",
"description": "<string>",
"amount": "<string>",
"stock_distribution_ratio": "<string>",
"currency": "<string>",
"declaration_date": "2023-12-25",
"record_date": "2023-12-25",
"ex_date": "2023-12-25",
"payment_date": "2023-12-25",
"detail_level": "summary"
}
]
},
"page": {
"next_cursor": "<string>",
"limit": 2
}
}套餐权限
| 套餐 | 可用 |
|---|---|
| 免费版 | ❌ |
| 基础版 | ✅ |
| 专业版 | ✅ |
| 全量套餐(A 股、港股、美股) | ✅ |
| 企业版 | ✅ |
注意事项
amount是每股现金分红金额的十进制字符串;非现金分派时可能为null。分页游标位于响应外层page。
支持的市场
| 市场 | 示例 |
|---|---|
| 美股 | AAPL.US |
| 港股 | 700.HK |
| A股 | 600519.SH |
请求参数
| 参数 | 是否必须 | 说明 |
|---|---|---|
symbol | 是 | 股票代码 |
type | 否 | 产品类型,当前支持 stock |
dividend_type | 否 | normal、special、non_cash、unknown |
from | 否 | 起始日期,格式 YYYY-MM-DD |
to | 否 | 结束日期,格式 YYYY-MM-DD |
limit | 否 | 单页数量,默认 100,范围 1–500 |
cursor | 否 | 下一页游标 |
请求示例
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/fundamentals/dividends?symbol=AAPL&type=stock&limit=100"
返回字段说明
以下列出data 及分页字段;外层 code=0 表示成功。
| 字段 | 说明 |
|---|---|
| symbol | 股票代码。 |
| events | 符合筛选条件的分红记录列表。 |
| └─ event_id | 事件 ID。 |
| └─ type | 分红类别。 |
| └─ distribution_kind | 分派形式。 |
| └─ amount | 每股现金金额;非现金分派时可能为 null。 |
| └─ stock_distribution_ratio | 每股送股或转增比例;例如 0.7 表示每 1 股送转 0.7 股,即每 10 股送转 7 股。 |
| └─ currency | 币种。 |
| └─ declaration_date | 公告日,格式 YYYY-MM-DD;可能为 null。 |
| └─ record_date | 股权登记日,格式 YYYY-MM-DD;可能为 null。 |
| └─ ex_date | 除权除息日,格式 YYYY-MM-DD;可能为 null。 |
| └─ payment_date | 支付日,格式 YYYY-MM-DD;可能为 null。 |
| └─ description | 事件说明。 |
| └─ detail_level | 详情级别。 |
| page | 响应外层的分页信息。 |
| └─ next_cursor | 下一页游标;末页为空。 |
| └─ limit | 当前分页上限。 |
授权
查询参数
股票代码
示例:
"AAPL"
"700"
"600519"
"AAPL.US"
"700.HK"
"600519.SH"
产品类型,当前支持 stock
可用选项:
stock 分红类型:normal、special、non_cash、unknown。
可用选项:
normal, special, non_cash, unknown 起始日期,格式 YYYY-MM-DD
示例:
"2024-01-01T00:00:00.000Z"
结束日期,格式 YYYY-MM-DD
示例:
"2026-12-31T00:00:00.000Z"
单页数量,默认 100,范围 1–500
必填范围:
1 <= x <= 500下一页游标;第一页不传
Minimum string length:
1