Peer Valuation Comparison
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/industry/peers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/industry/peers"
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/industry/peers', 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/industry/peers",
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/industry/peers"
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/industry/peers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/industry/peers")
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": {
"parent_symbol": "<string>",
"peers": [
{
"peer_symbol": "<string>",
"peer_name": "<string>",
"currency": "<string>",
"assets": "<string>",
"bps": "<string>",
"eps": "<string>",
"dps": "<string>",
"div_yield": "<string>",
"div_payout_ratio": "<string>",
"five_y_avg_dps": "<string>",
"pe": "<string>"
}
]
}
}Valuation and Industries
Peer Valuation Comparison
Retrieve peer companies and comparable valuation, earnings-per-share, and related metrics.
GET
/
v1
/
fundamentals
/
industry
/
peers
Peer Valuation Comparison
curl --request GET \
--url https://api.tickdb.ai/v1/fundamentals/industry/peers \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tickdb.ai/v1/fundamentals/industry/peers"
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/industry/peers', 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/industry/peers",
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/industry/peers"
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/industry/peers")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tickdb.ai/v1/fundamentals/industry/peers")
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": {
"parent_symbol": "<string>",
"peers": [
{
"peer_symbol": "<string>",
"peer_name": "<string>",
"currency": "<string>",
"assets": "<string>",
"bps": "<string>",
"eps": "<string>",
"dps": "<string>",
"div_yield": "<string>",
"div_payout_ratio": "<string>",
"five_y_avg_dps": "<string>",
"pe": "<string>"
}
]
}
}Plan Access
| Plan | Available |
|---|---|
| Free | ❌ |
| Starter | ❌ |
| Professional | ✅ |
| Full-Market Plans (A-Shares, HK Stocks, US Stocks) | ✅ |
| Enterprise | ✅ |
Notes
- Peer samples and metric availability vary by market and company. Financial ratios are normally returned as strings.
Supported Markets
| Market | Examples |
|---|---|
| US Stocks | AAPL.US |
| HK Stocks | 700.HK |
| A-Shares | 600519.SH |
Request Parameters
| Parameter | Required | Description |
|---|---|---|
symbol | Yes | Stock symbol |
type | No | Product type; currently supports stock |
Request Example
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.tickdb.ai/v1/fundamentals/industry/peers?symbol=AAPL&type=stock"
Response Fields
The table below lists fields indata; an outer code=0 indicates success.
| Field | Description |
|---|---|
| parent_symbol | Queried stock symbol. |
| peers | Peer companies and comparable metrics. |
| └─ peer_symbol | Peer stock symbol. |
| └─ peer_name | Peer company name. |
| └─ currency | Metric currency. |
| └─ pe | Price-to-earnings ratio. |
| └─ eps | Earnings per share. |
| └─ bps | Book value per share. |
| └─ assets | Asset metric. |
| └─ dps | Dividend per share. |
| └─ div_yield | Dividend yield. |
| └─ div_payout_ratio | Dividend payout ratio. |
| └─ five_y_avg_dps | Five-year average dividend per share. |
Authorizations
Query Parameters
Stock symbol
Examples:
"AAPL"
"700"
"600519"
"AAPL.US"
"700.HK"
"600519.SH"
Product type; currently supports stock
Available options:
stock 