分紅記錄
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