公司資料
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/profile \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/profile"
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/profile', 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/profile",
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/profile"
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/profile")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/profile")
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>",
"name": "<string>",
"market": "<string>",
"company_name": "<string>",
"region": "<string>",
"founded": "<string>",
"listing_date": "2023-12-25",
"year_end": "<string>",
"address": "<string>",
"office_address": "<string>",
"phone": "<string>",
"email": "<string>",
"website": "<string>",
"employees": 123,
"chairman": "<string>",
"manager": "<string>",
"secretary": "<string>",
"legal_repr": "<string>",
"accounting_firm": "<string>",
"legal_counsel": "<string>",
"category": "<string>",
"profile": "<string>"
}
}公司概況
公司資料
獲取公司的基本資料、所屬市場、行業和上市信息。
GET
/
v1
/
fundamentals
/
profile
公司資料
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/profile \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/profile"
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/profile', 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/profile",
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/profile"
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/profile")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/profile")
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>",
"name": "<string>",
"market": "<string>",
"company_name": "<string>",
"region": "<string>",
"founded": "<string>",
"listing_date": "2023-12-25",
"year_end": "<string>",
"address": "<string>",
"office_address": "<string>",
"phone": "<string>",
"email": "<string>",
"website": "<string>",
"employees": 123,
"chairman": "<string>",
"manager": "<string>",
"secretary": "<string>",
"legal_repr": "<string>",
"accounting_firm": "<string>",
"legal_counsel": "<string>",
"category": "<string>",
"profile": "<string>"
}
}套餐權限
| 套餐 | 可用 |
|---|---|
| 免費版 | ❌ |
| 基礎版 | ✅ |
| 專業版 | ✅ |
| 全量套餐(A 股、港股、美股) | ✅ |
| 企業版 | ✅ |
注意事項
- 部分資料字段可能為空字符串或
null;不要把缺失值當作“無”。
支持的市場
| 市場 | 示例 |
|---|---|
| 美股 | AAPL.US |
| 港股 | 700.HK |
| A股 | 600519.SH |
請求參數
| 參數 | 是否必須 | 說明 |
|---|---|---|
symbol | 是 | 股票代碼 |
type | 否 | 產品類型,當前支持 stock |
請求示例
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/fundamentals/profile?symbol=AAPL&type=stock"
返回字段說明
以下列出data 中的字段;外層 code=0 表示成功。
| 字段 | 說明 |
|---|---|
| symbol | 標準化股票代碼。 |
| market | 所屬市場。 |
| region | 所屬地區。 |
| company_name | 公司全稱。 |
| name | 展示名稱。 |
| profile | 公司業務簡介。 |
| address | 地址。 |
| office_address | 辦公地址。 |
| phone | 聯系電話。 |
| 電子郵箱。 | |
| website | 公司網站。 |
| founded | 成立年份或日期;無數據時為 null。 |
| listing_date | 上市日期,格式 YYYY-MM-DD;可能為 null。 |
| year_end | 財年結束信息;可能為 null。 |
| employees | 員工人數。 |
| chairman | 董事長。 |
| manager | 主要管理人員。 |
| secretary | 公司秘書。 |
| legal_repr | 法定代表人。 |
| accounting_firm | 會計師事務所。 |
| legal_counsel | 法律顧問。 |
| category | 公司類別。 |
