Available Symbols
curl --request GET \
--url https://api.tickdb.ai/v1/symbols/available \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/symbols/available"
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/symbols/available', 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/symbols/available",
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/symbols/available"
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/symbols/available")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/symbols/available")
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,
"message": "success",
"data": {
"products": [
{
"symbol": "000001.SZ",
"name": "平安银行",
"market": "CN",
"type": "stock",
"currency": "CNY",
"is_active": true,
"updated_at": "2026-03-15T20:27:58Z"
}
],
"summary": {
"total_products": 32492,
"by_market": {
"CN": 6643,
"GLOBAL": 14833,
"HK": 2909,
"US": 8107
},
"by_type": {
"crypto": 877,
"stock": 17658,
"forex": 1207,
"indices": 12750
},
"last_updated": "2026-03-27T11:09:44+08:00"
},
"pagination": {
"limit": 10,
"offset": 0,
"total": 6642,
"count": 10
}
}
}通用行情接口
產品查詢
查詢 TickDB 支持的產品,涵蓋外匯、指數、美股、港股、A股、中國期貨、加密貨幣等市場,產品列表持續增加中。
GET
/
v1
/
symbols
/
available
Available Symbols
curl --request GET \
--url https://api.tickdb.ai/v1/symbols/available \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/symbols/available"
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/symbols/available', 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/symbols/available",
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/symbols/available"
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/symbols/available")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/symbols/available")
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,
"message": "success",
"data": {
"products": [
{
"symbol": "000001.SZ",
"name": "平安银行",
"market": "CN",
"type": "stock",
"currency": "CNY",
"is_active": true,
"updated_at": "2026-03-15T20:27:58Z"
}
],
"summary": {
"total_products": 32492,
"by_market": {
"CN": 6643,
"GLOBAL": 14833,
"HK": 2909,
"US": 8107
},
"by_type": {
"crypto": 877,
"stock": 17658,
"forex": 1207,
"indices": 12750
},
"last_updated": "2026-03-27T11:09:44+08:00"
},
"pagination": {
"limit": 10,
"offset": 0,
"total": 6642,
"count": 10
}
}
}注意事項
- 市場代碼不區分大小寫
- 產品命名規則請參閱數據規範文檔
- 僅返回狀態為活躍且已確認可用的產品
- 使用
market=CN&type=futures查詢可用的中國期貨 - 除 API 查詢外,您也可以登入 TickDB 官網 用戶中心,在產品管理頁面直接瀏覽和搜尋所有支持的產品

市場與產品類型
透過market 和 type 參數可以靈活過濾產品,兩者可單獨或組合使用。
| market | type | 說明 | 產品量級 |
|---|---|---|---|
| GLOBAL | forex | 外匯貨幣對、貴金屬 | 1,200+ |
| GLOBAL | indices | 市場指數 | 12,900+ |
| GLOBAL | crypto | 加密貨幣交易對 | 800+ |
| US | stock | 美國股票 | 12,400+ |
| HK | stock | 香港股票 | 4,300+ |
| CN | stock | A股 | 6,000+ |
| CN | futures | 中國期貨 | 持續更新 |
market按具體市場過濾,如market=CN返回A股和中國期貨type按產品大類過濾,如type=stock返回 US + HK + CN 全部股票- 組合使用:
market=HK&type=stock僅返回港股
請求參數
| 參數名 | 是否必須 | 描述 |
|---|---|---|
| type | 否 | 產品類型過濾,可選值:stock, crypto, forex, indices, futures |
| market | 否 | 市場過濾,可選值:GLOBAL, US, HK, CN |
| limit | 否 | 每頁返回數量,預設100,最大1000 |
| offset | 否 | 分頁偏移量,預設0 |
返回字段說明
| 字段名 | 描述 |
|---|---|
| products | 產品陣列 |
| └─ symbol | 產品代碼 |
| └─ name | 產品名稱 |
| └─ market | 市場代碼 |
| └─ type | 產品類型(stock/crypto/forex/indices/futures) |
| └─ currency | 交易幣種(CNY/USD/HKD/USDT) |
| └─ is_active | 是否活躍 |
| └─ updated_at | 更新時間 |
| summary | 匯總資訊 |
| └─ total_products | 產品總數 |
| └─ by_market | 按市場統計數量 |
| └─ by_type | 按類型統計數量 |
| └─ last_updated | 最後更新時間 |
| pagination | 分頁資訊 |
| └─ limit | 每頁數量 |
| └─ offset | 偏移量 |
| └─ total | 總數 |
| └─ count | 當前頁返回數量 |
授權
查詢參數
Product type filter
可用選項:
stock, crypto, forex, indices, futures 範例:
"stock"
Market filter
可用選項:
GLOBAL, US, HK, CN 範例:
"CN"
Number of symbols per page (default 100, max 1000)
必填範圍:
1 <= x <= 1000範例:
50
Offset for pagination (default 0)
必填範圍:
x >= 0範例:
0
⌘I
