Stock Information
curl --request GET \
--url https://api.tickdb.ai/v1/market/stock-info \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/market/stock-info"
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/market/stock-info', 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/market/stock-info",
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/market/stock-info"
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/market/stock-info")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/market/stock-info")
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": [
{
"symbol": "700.HK",
"name_cn": "腾讯控股",
"name_en": "TENCENT",
"name_hk": "騰訊控股",
"exchange": "SEHK",
"currency": "HKD",
"lot_size": 100,
"total_shares": 9095085993,
"circulating_shares": 9095085993,
"hk_shares": 9095085993,
"eps": "27.3701441378468889",
"eps_ttm": "29.8128867314657505",
"bps": "143.787288892927458",
"dividend_yield": "5.3133478570728672",
"stock_derivatives": [
2
]
},
{
"symbol": "AAPL.US",
"name_cn": "苹果",
"name_en": "Apple",
"name_hk": "蘋果",
"exchange": "NASD",
"currency": "USD",
"lot_size": 1,
"total_shares": 14594180000,
"circulating_shares": 14569121909,
"eps": "7.6749772854658501",
"eps_ttm": "8.8343435533890907",
"bps": "7.3673203975831462",
"dividend_yield": "1.06",
"stock_derivatives": [
1
]
},
{
"symbol": "000001.SZ",
"name_cn": "平安银行",
"exchange": "SZ",
"currency": "CNY",
"lot_size": 100,
"total_shares": 19405918198,
"circulating_shares": 19405684991,
"eps": "1.24",
"bps": "24.13",
"board": "sz_stock"
}
]
}Stock Quotes and Metrics
Stock Information
Retrieve stock names, exchanges, currencies, share capital, and per-share metrics.
GET
/
v1
/
market
/
stock-info
Stock Information
curl --request GET \
--url https://api.tickdb.ai/v1/market/stock-info \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/market/stock-info"
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/market/stock-info', 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/market/stock-info",
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/market/stock-info"
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/market/stock-info")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/market/stock-info")
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": [
{
"symbol": "700.HK",
"name_cn": "腾讯控股",
"name_en": "TENCENT",
"name_hk": "騰訊控股",
"exchange": "SEHK",
"currency": "HKD",
"lot_size": 100,
"total_shares": 9095085993,
"circulating_shares": 9095085993,
"hk_shares": 9095085993,
"eps": "27.3701441378468889",
"eps_ttm": "29.8128867314657505",
"bps": "143.787288892927458",
"dividend_yield": "5.3133478570728672",
"stock_derivatives": [
2
]
},
{
"symbol": "AAPL.US",
"name_cn": "苹果",
"name_en": "Apple",
"name_hk": "蘋果",
"exchange": "NASD",
"currency": "USD",
"lot_size": 1,
"total_shares": 14594180000,
"circulating_shares": 14569121909,
"eps": "7.6749772854658501",
"eps_ttm": "8.8343435533890907",
"bps": "7.3673203975831462",
"dividend_yield": "1.06",
"stock_derivatives": [
1
]
},
{
"symbol": "000001.SZ",
"name_cn": "平安银行",
"exchange": "SZ",
"currency": "CNY",
"lot_size": 100,
"total_shares": 19405918198,
"circulating_shares": 19405684991,
"eps": "1.24",
"bps": "24.13",
"board": "sz_stock"
}
]
}Plan Access
| Plan | Available |
|---|---|
| Free | ✅ |
| Starter | ✅ |
| Professional | ✅ |
| Full-Market Plans (A-Shares, HK Stocks, US Stocks) | ✅ |
| Enterprise | ✅ |
Notes
- A single request can contain up to 500 stock symbols.
- Returned fields vary by market and data availability. Conditional fields are omitted when no value is available.
Supported Markets
| Market | Examples |
|---|---|
| US Stocks | AAPL.US, TSLA.US, MSFT.US |
| HK Stocks | 700.HK, 9988.HK, 3690.HK |
| A-Shares | 600519.SH, 000001.SZ, 300750.SZ |
Request Parameters
| Parameter | Required | Description |
|---|---|---|
| symbols | Yes | Stock symbol codes, comma-separated, maximum 500 |
| type | No | Symbol type, optional. Not required when the symbol is unambiguous; if the API returns an AMBIGUOUS_SYMBOL error, pass the value as indicated. Values: stock, indices, crypto, forex |
Response Fields
| Field | Description |
|---|---|
| symbol | Trading Symbol |
| name_cn | Chinese simplified name |
| name_en | English name; returned for HK and US stocks |
| name_hk | Traditional Chinese name; returned for HK and US stocks |
| exchange | Exchange where the symbol is traded |
| currency | Trading currency (CNY/USD/HKD) |
| lot_size | Shares per lot |
| total_shares | Total shares outstanding; returned when available |
| circulating_shares | Circulating shares; returned when available |
| hk_shares | H-share capital; returned for HK stocks and A-share companies that also issue H shares |
| eps | Earnings per share; returned when available |
| eps_ttm | Earnings per share for the trailing twelve months; returned for HK and US stocks when available |
| bps | Book value per share; returned when available |
| dividend_yield | Dividend yield; returned for HK and US stocks when available |
| stock_derivatives | Available derivative types; 1 means options and 2 means warrants. Returned for HK and US stocks when available |
| board | A-share board or security classification code; returned for A-shares |
Authorizations
Query Parameters
Stock symbol codes, comma-separated, maximum 500
Example:
"700.HK,AAPL.US,000001.SZ"
Symbol type, optional. Not required when the symbol is unambiguous; if the API returns an AMBIGUOUS_SYMBOL error, pass the value as indicated. Values: stock, indices, crypto, forex
Available options:
stock, indices, crypto, forex Example:
"stock"
Response
200 - application/json
Successful response.
Example:
0
Example:
"success"
Show child attributes
Show child attributes
Example:
[ { "symbol": "700.HK", "name_cn": "腾讯控股", "name_en": "TENCENT", "name_hk": "騰訊控股", "exchange": "SEHK", "currency": "HKD", "lot_size": 100, "total_shares": 9095085993, "circulating_shares": 9095085993, "hk_shares": 9095085993, "eps": "27.3701441378468889", "eps_ttm": "29.8128867314657505", "bps": "143.787288892927458", "dividend_yield": "5.3133478570728672", "stock_derivatives": [2] }, { "symbol": "AAPL.US", "name_cn": "苹果", "name_en": "Apple", "name_hk": "蘋果", "exchange": "NASD", "currency": "USD", "lot_size": 1, "total_shares": 14594180000, "circulating_shares": 14569121909, "eps": "7.6749772854658501", "eps_ttm": "8.8343435533890907", "bps": "7.3673203975831462", "dividend_yield": "1.06", "stock_derivatives": [1] }, { "symbol": "000001.SZ", "name_cn": "平安银行", "exchange": "SZ", "currency": "CNY", "lot_size": 100, "total_shares": 19405918198, "circulating_shares": 19405684991, "eps": "1.24", "bps": "24.13", "board": "sz_stock" } ]
