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": 9106356125,
"circulating_shares": 9106356125,
"hk_shares": 9106356125,
"eps": "23.013927604754377",
"eps_ttm": "26.2097750997138276",
"bps": "140.9780051897266427",
"dividend_yield": "4.5408485490127919",
"stock_derivatives": [
2
]
},
{
"symbol": "AAPL.US",
"name_cn": "苹果",
"name_en": "Apple Inc.",
"name_hk": "蘋果",
"exchange": "NASD",
"currency": "USD",
"lot_size": 1,
"total_shares": 14681140000,
"circulating_shares": 14656175336,
"eps": "7.6295165089359546",
"eps_ttm": "8.0223334155249524",
"bps": "6.0070267022860623",
"dividend_yield": "1.04",
"stock_derivatives": [
1
]
},
{
"symbol": "000001.SZ",
"name_cn": "平安银行",
"name_en": "PAB",
"name_hk": "平安銀行",
"exchange": "SZSE",
"currency": "CNY",
"lot_size": 100,
"total_shares": 19405918198,
"circulating_shares": 19405762053,
"eps": "2.146707",
"eps_ttm": "2.2218995030311835",
"bps": "23.0845557231179667",
"dividend_yield": "0.5980134452589843"
}
]
}Stock Market APIs
Stock Information
Retrieve detailed information for stocks, including company name, industry classification, market capitalization, and other fundamental data.
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": 9106356125,
"circulating_shares": 9106356125,
"hk_shares": 9106356125,
"eps": "23.013927604754377",
"eps_ttm": "26.2097750997138276",
"bps": "140.9780051897266427",
"dividend_yield": "4.5408485490127919",
"stock_derivatives": [
2
]
},
{
"symbol": "AAPL.US",
"name_cn": "苹果",
"name_en": "Apple Inc.",
"name_hk": "蘋果",
"exchange": "NASD",
"currency": "USD",
"lot_size": 1,
"total_shares": 14681140000,
"circulating_shares": 14656175336,
"eps": "7.6295165089359546",
"eps_ttm": "8.0223334155249524",
"bps": "6.0070267022860623",
"dividend_yield": "1.04",
"stock_derivatives": [
1
]
},
{
"symbol": "000001.SZ",
"name_cn": "平安银行",
"name_en": "PAB",
"name_hk": "平安銀行",
"exchange": "SZSE",
"currency": "CNY",
"lot_size": 100,
"total_shares": 19405918198,
"circulating_shares": 19405762053,
"eps": "2.146707",
"eps_ttm": "2.2218995030311835",
"bps": "23.0845557231179667",
"dividend_yield": "0.5980134452589843"
}
]
}Notes
- Returned information may vary depending on data source
Supported Markets
US Stocks, HK Stocks, A-Shares Examples:- US Stocks: AAPL.US, TSLA.US, MSFT.US
- HK Stocks: 700.HK, 9988.HK, 3690.HK
- A-Shares: 000001.SH, 000001.SZ
Request Parameters
| Parameter | Required | Description |
|---|---|---|
| symbols | Yes | Stock symbol codes, comma-separated, max 50 |
| 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 |
| name_hk | Chinese traditional name |
| exchange | Exchange where the symbol is traded |
| currency | Trading currency (CNY/USD/HKD) |
| lot_size | Shares per lot |
| total_shares | Total shares outstanding |
| circulating_shares | Circulating shares |
| hk_shares | HK shares (HK stocks only) |
| eps | Earnings per share |
| eps_ttm | Earnings per share (TTM) |
| bps | Book value per share |
| dividend_yield | Dividend yield (if calculated annually, annual calculation type provided) |
| stock_derivatives | Options: 1 - Options, 2 - Warrants |
Authorizations
Query Parameters
Comma-separated stock symbols (max 50)
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
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": 9106356125,
"circulating_shares": 9106356125,
"hk_shares": 9106356125,
"eps": "23.013927604754377",
"eps_ttm": "26.2097750997138276",
"bps": "140.9780051897266427",
"dividend_yield": "4.5408485490127919",
"stock_derivatives": [2]
},
{
"symbol": "AAPL.US",
"name_cn": "苹果",
"name_en": "Apple Inc.",
"name_hk": "蘋果",
"exchange": "NASD",
"currency": "USD",
"lot_size": 1,
"total_shares": 14681140000,
"circulating_shares": 14656175336,
"eps": "7.6295165089359546",
"eps_ttm": "8.0223334155249524",
"bps": "6.0070267022860623",
"dividend_yield": "1.04",
"stock_derivatives": [1]
},
{
"symbol": "000001.SZ",
"name_cn": "平安银行",
"name_en": "PAB",
"name_hk": "平安銀行",
"exchange": "SZSE",
"currency": "CNY",
"lot_size": 100,
"total_shares": 19405918198,
"circulating_shares": 19405762053,
"eps": "2.146707",
"eps_ttm": "2.2218995030311835",
"bps": "23.0845557231179667",
"dividend_yield": "0.5980134452589843"
}
]
⌘I
