tickdb-ai Fundamentals Valuation Industry API
The fundamentals-valuation-industry API from tickdb-ai — 6 operation(s) for fundamentals-valuation-industry.
The fundamentals-valuation-industry API from tickdb-ai — 6 operation(s) for fundamentals-valuation-industry.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tickdb-ai:tickdb-ai-fundamentals-valuation-industry-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TickDB Fundamentals Valuation Industry API
description: TickDB 统一实时行情数据 API,提供 REST 和 WebSocket 接入。
version: 1.0.3
contact:
email: support@tickdb.ai
servers:
- url: https://api.tickdb.ai
description: 生产环境
security:
- ApiKeyAuth: []
tags:
- name: fundamentals-valuation-industry
paths:
/v1/fundamentals/valuation/latest:
get:
tags:
- fundamentals-valuation-industry
summary: 最新估值
description: 获取股票当前市盈率及近一年区间统计。
operationId: getFundamentalsValuationLatest
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
responses:
'200':
$ref: '#/components/responses/ValuationLatestResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/valuation/ts:
get:
tags:
- fundamentals-valuation-industry
summary: 历史估值
description: 查询市盈率(PE)按日或按月的历史数值。
operationId: getFundamentalsValuationTimeSeries
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
- $ref: '#/components/parameters/GranularityQuery'
- $ref: '#/components/parameters/ValuationFromQuery'
- $ref: '#/components/parameters/ValuationToQuery'
responses:
'200':
$ref: '#/components/responses/ValuationTimeSeriesResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/industry/peers:
get:
tags:
- fundamentals-valuation-industry
summary: 同行估值对比
description: 查询与该股票同行的公司及其估值、每股收益等可比指标。
operationId: getFundamentalsIndustryPeers
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
responses:
'200':
$ref: '#/components/responses/IndustryPeersResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/industry/dist:
get:
tags:
- fundamentals-valuation-industry
summary: 行业估值分布
description: 获取股票所属行业的估值分布和样本统计。
operationId: getFundamentalsIndustryDistribution
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
responses:
'200':
$ref: '#/components/responses/IndustryDistributionResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/industries/rank:
get:
tags:
- fundamentals-valuation-industry
summary: 行业指标排行
description: 查询指定市场按行业指标排序的结果。
operationId: getFundamentalsIndustriesRank
parameters:
- $ref: '#/components/parameters/RequiredMarketQuery'
- $ref: '#/components/parameters/IndustryRankLimitQuery'
responses:
'200':
$ref: '#/components/responses/IndustriesRankResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/industries/tree:
get:
tags:
- fundamentals-valuation-industry
summary: 行业分类层级
description: 查询指定行业所属的顶层分类及下级行业分类。
operationId: getFundamentalsIndustriesTree
parameters:
- $ref: '#/components/parameters/RequiredMarketQuery'
- $ref: '#/components/parameters/IndustryCounterIDQuery'
responses:
'200':
$ref: '#/components/responses/IndustriesTreeResponse'
default:
$ref: '#/components/responses/ErrorResponse'
components:
responses:
IndustryPeersResponse:
description: 同行估值对比响应。
content:
application/json:
schema:
$ref: '#/components/schemas/IndustryPeersEnvelope'
ErrorResponse:
description: 错误响应。常见 HTTP 状态包括 400(参数错误)、401(鉴权失败)、403(权限或配额限制)、404(无匹配数据)、429(请求频率限制)和 503(服务暂不可用)。
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
examples:
missingAPIKey:
summary: 缺少 API Key
value:
code: '1002'
message: API key is required. Provide via X-API-Key header
error: '1002'
missingKind:
summary: 缺少必填参数
value:
code: 40001
message: kind is required
data: null
endpointForbidden:
summary: API Key 无权访问该接口
value:
code: 3009
message: This endpoint is not allowed for your API key
data: null
marketForbidden:
summary: API Key 未开放该市场
value:
code: 3010
message: Fundamentals market not allowed for your API key
data:
market: US
noAvailableSource:
summary: 数据暂不可用
value:
code: 5003
message: Data is temporarily unavailable
data: null
notFound:
summary: 无匹配数据
value:
code: 40404
message: shareholder detail not found
data: null
businessNoData:
summary: 查询条件无有效业务数据
value:
code: 40405
message: valuation time series not found
data: null
IndustriesTreeResponse:
description: 行业分类层级响应。
content:
application/json:
schema:
$ref: '#/components/schemas/IndustriesTreeEnvelope'
ValuationLatestResponse:
description: 最新估值响应。
content:
application/json:
schema:
$ref: '#/components/schemas/ValuationLatestEnvelope'
IndustriesRankResponse:
description: 行业指标排行响应。
content:
application/json:
schema:
$ref: '#/components/schemas/IndustriesRankEnvelope'
IndustryDistributionResponse:
description: 行业估值分布响应。
content:
application/json:
schema:
$ref: '#/components/schemas/IndustryDistributionEnvelope'
ValuationTimeSeriesResponse:
description: 历史估值响应。
content:
application/json:
schema:
$ref: '#/components/schemas/ValuationTimeSeriesEnvelope'
schemas:
IndustryDistributionEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/IndustryDistributionData'
ValuationLatestEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/ValuationLatestData'
ValuationTimeSeriesEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/ValuationTimeSeriesData'
PeerItem:
type: object
required:
- peer_symbol
- peer_name
properties:
peer_symbol:
type: string
description: 同行公司股票代码。
peer_name:
type: string
description: 同行公司名称。
currency:
type:
- string
- 'null'
description: 币种。
assets:
type:
- string
- number
- 'null'
description: 资产值。
bps:
type:
- string
- number
- 'null'
description: 每股净资产。
eps:
type:
- string
- number
- 'null'
description: 每股收益。
dps:
type:
- string
- number
- 'null'
description: 每股股息。
div_yield:
type:
- string
- number
- 'null'
description: 股息率。
div_payout_ratio:
type:
- string
- number
- 'null'
description: 股息支付率。
five_y_avg_dps:
type:
- string
- number
- 'null'
description: 五年平均每股股息。
pe:
type:
- string
- number
- 'null'
description: 市盈率。
additionalProperties: true
IndustriesTreeEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/IndustriesTreeData'
IndustryDistributionData:
type: object
required:
- symbol
- distributions
properties:
symbol:
type: string
description: 标准化股票代码。
distributions:
type: array
description: 各估值指标在行业内的分布与排名。
items:
$ref: '#/components/schemas/IndustryDistributionItem'
additionalProperties: true
IndustryDistributionItem:
type: object
required:
- metric
- low
- high
- median
- value
- ranking
- rank_index
- rank_total
properties:
metric:
type: string
description: 估值指标。
low:
type:
- string
- number
- 'null'
description: 行业低位。
high:
type:
- string
- number
- 'null'
description: 行业高位。
median:
type:
- string
- number
- 'null'
description: 行业中位数。
value:
type:
- string
- number
- 'null'
description: 当前公司值。
ranking:
type:
- string
- number
- 'null'
description: 排名展示值。
rank_index:
type: integer
minimum: 0
description: 排名序号。
rank_total:
type: integer
minimum: 0
description: 排名样本总数。
additionalProperties: true
IndustriesRankEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/IndustriesRankData'
ValuationMetricSnapshot:
type: object
required:
- value
- high_1y
- low_1y
- median_1y
- desc
properties:
value:
type:
- string
- number
- 'null'
description: 当前值。
high_1y:
type:
- string
- number
- 'null'
description: 一年高位。
low_1y:
type:
- string
- number
- 'null'
description: 一年低位。
median_1y:
type:
- string
- number
- 'null'
description: 一年中位数。
desc:
type:
- string
- 'null'
description: 说明文本;内容可能包含 HTML。
additionalProperties: true
ValuationLatestData:
type: object
required:
- symbol
- metrics
properties:
symbol:
type: string
description: 标准化股票代码。
metrics:
type: object
required:
- PE
properties:
PE:
$ref: '#/components/schemas/ValuationMetricSnapshot'
additionalProperties: false
additionalProperties: true
IndustryPeersData:
type: object
required:
- parent_symbol
- peers
properties:
parent_symbol:
type: string
description: 被查询公司的标准化股票代码。
peers:
type: array
description: 同行公司及可比较指标列表。
items:
$ref: '#/components/schemas/PeerItem'
additionalProperties: true
ValuationTimeSeriesData:
type: object
required:
- symbol
- metric
- granularity
- from
- to
- points
properties:
symbol:
type: string
description: 标准化股票代码。
metric:
type: string
enum:
- PE
description: 估值指标,当前固定为 PE(市盈率)。
granularity:
type: string
enum:
- daily
- monthly
description: 历史估值记录的时间粒度。
from:
type: string
format: date
description: 查询范围的起始日期,格式 YYYY-MM-DD。
to:
type: string
format: date
description: 查询范围的结束日期,格式 YYYY-MM-DD。
points:
type: array
description: 历史估值记录,每项为 [RFC 3339 日期时间字符串, 指标值]。
items:
$ref: '#/components/schemas/MetricPoint'
additionalProperties: true
IndustryPeersEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/IndustryPeersData'
IndustryTop:
type: object
required:
- name
- market
properties:
name:
type: string
description: 节点名称。
market:
type: string
description: 市场。
additionalProperties: false
IndustriesTreeData:
type: object
required:
- market
- industry_counter_id
- top
- chain
properties:
market:
type: string
description: 市场。
industry_counter_id:
type: string
description: 行业 ID。
top:
$ref: '#/components/schemas/IndustryTop'
chain:
$ref: '#/components/schemas/IndustryChainNode'
additionalProperties: true
SuccessEnvelope:
type: object
required:
- code
- data
properties:
code:
type: integer
const: 0
description: 业务状态码,成功为 0。
IndustriesRankData:
type: object
required:
- market
- indicator
- sort_type
- items
properties:
market:
type: string
description: 市场。
indicator:
type: string
description: 排行指标。
sort_type:
type: string
description: 排序方向。
items:
type: array
description: 行业指标排行列表。
items:
$ref: '#/components/schemas/IndustryRankItem'
additionalProperties: true
ErrorEnvelope:
type: object
required:
- code
- message
properties:
code:
description: TickDB API 业务错误码;可能为整数或字符串,客户端应归一化为字符串后比较。
oneOf:
- type: integer
- type: string
message:
type: string
description: 错误说明。
error:
type: string
description: 兼容错误标识;仅部分错误响应返回。
data:
description: 可选的错误上下文;可能为 null、对象或数组。
oneOf:
- type: 'null'
- type: object
additionalProperties: true
- type: array
items: {}
IndustryChainNode:
type: object
required:
- name
- level
- market
- counter_id
- next
properties:
name:
type: string
description: 行业名称。
level:
type: integer
description: 层级。
market:
type: string
description: 市场。
counter_id:
type: string
description: 行业 counter ID。
parent_code:
type: string
description: 父行业代码。
sharelist_id:
type: string
description: 股票列表 ID。
symbol:
type: string
description: 节点关联代码。
stock_num:
type: integer
minimum: 0
description: 股票数量。
chg:
type:
- string
- number
- 'null'
description: 变动值。
ytd_chg:
type:
- string
- number
- 'null'
description: 年初至今变动值。
next:
type: array
description: 下一级行业分类节点。
items:
$ref: '#/components/schemas/IndustryChainNode'
additionalProperties: false
IndustryRankItem:
type: object
required:
- industry_counter_id
- industry_name
- rank
- value
- change_percent
properties:
industry_counter_id:
type: string
description: 行业 ID,可用于 industries/tree。
industry_name:
type: string
description: 行业名称。
rank:
type: integer
description: 排名。
value:
type:
- string
- number
description: 行业总市值。
change_percent:
type:
- string
- number
- 'null'
description: 变动比例。
additionalProperties: true
MetricPoint:
type: array
minItems: 2
maxItems: 2
prefixItems:
- type: string
format: date-time
description: RFC 3339 日期时间字符串,包含时区信息。
- type:
- string
- number
- 'null'
description: 指标值。
items: false
parameters:
TypeQuery:
name: type
in: query
required: false
schema:
type: string
enum:
- stock
description: 产品类型,当前支持 `stock`
RequiredMarketQuery:
name: market
in: query
required: true
schema:
type: string
enum:
- US
- HK
- CN
description: 市场代码:`US` 美股、`HK` 港股、`CN` A股
ValuationFromQuery:
name: from
in: query
required: false
schema:
type: string
format: date
description: 起始日期,格式 `YYYY-MM-DD`
SymbolQuery:
name: symbol
in: query
required: true
schema:
type: string
examples:
- AAPL
- '700'
- '600519'
- AAPL.US
- 700.HK
- 600519.SH
description: 股票代码
GranularityQuery:
name: granularity
in: query
required: false
schema:
type: string
enum:
- daily
- monthly
default: daily
description: '`daily` 或 `monthly`,默认 `daily`'
IndustryCounterIDQuery:
name: industry_counter_id
in: query
required: true
schema:
type: string
description: 行业节点 ID,可从行业指标排行接口获取
IndustryRankLimitQuery:
name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 200
default: 50
description: 返回条数,默认 50,范围 `1–200`
ValuationToQuery:
name: to
in: query
required: false
schema:
type: string
format: date
description: 结束日期,格式 `YYYY-MM-DD`
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
x-user-api-scope:
primary_user_api_count: 25
authentication: X-API-Key
x-fundamentals-product-scope:
supported_stock_categories:
- market: US
exchanges:
- NASDAQ
- NYSE
- AMEX
category: stock
- market: HK
exchanges:
- HKEX
category: stock
- market: CN
exchanges:
- SH
- SZ
category: stock
unsupported_upstream_categories:
- US_ARCA
- US_BATS
- CN_BJ_STOCK
- CN_SH_ETF
- CN_SZ_ETF
unsupported_behavior: 不承诺 fundamentals 数据可用性;当前接口行为包括结构化 404 或格式正确的成功空响应。