tickdb-ai Fundamentals Financials API
The fundamentals-financials API from tickdb-ai — 5 operation(s) for fundamentals-financials.
The fundamentals-financials API from tickdb-ai — 5 operation(s) for fundamentals-financials.
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-financials-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 Financials 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-financials
paths:
/v1/fundamentals/financials/latest:
get:
tags:
- fundamentals-financials
summary: 近期财务报表
description: 查询最近若干期利润表、资产负债表或现金流量表的指标数据。
operationId: getFundamentalsFinancialsLatest
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
- $ref: '#/components/parameters/KindQuery'
- $ref: '#/components/parameters/NQuery'
- $ref: '#/components/parameters/PeriodTypeQuery'
responses:
'200':
$ref: '#/components/responses/FinancialRowsResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/financials/annual:
get:
tags:
- fundamentals-financials
summary: 年度财务报表
description: 查询最近若干年的利润表、资产负债表或现金流量表指标数据。
operationId: getFundamentalsFinancialsAnnual
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
- $ref: '#/components/parameters/KindQuery'
- $ref: '#/components/parameters/NQuery'
responses:
'200':
$ref: '#/components/responses/FinancialRowsResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/financials/ttm:
get:
tags:
- fundamentals-financials
summary: 财务数据 TTM
description: 查询最近四个有效单季汇总的近12个月利润表或现金流量表指标。
operationId: getFundamentalsFinancialsTTM
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
- $ref: '#/components/parameters/TTMKindQuery'
responses:
'200':
$ref: '#/components/responses/FinancialRowsResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/segments/latest:
get:
tags:
- fundamentals-financials
summary: 营收构成
description: 展示最近一期按业务或地区划分的收入金额和占比。
operationId: getFundamentalsSegmentsLatest
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
- $ref: '#/components/parameters/SegmentCategoryQuery'
responses:
'200':
$ref: '#/components/responses/SegmentsLatestResponse'
default:
$ref: '#/components/responses/ErrorResponse'
/v1/fundamentals/segments/history:
get:
tags:
- fundamentals-financials
summary: 历史营收构成
description: 展示历史报告期按业务或地区划分的收入金额和占比。
operationId: getFundamentalsSegmentsHistory
parameters:
- $ref: '#/components/parameters/SymbolQuery'
- $ref: '#/components/parameters/TypeQuery'
- $ref: '#/components/parameters/SegmentCategoryQuery'
- $ref: '#/components/parameters/ReportQuery'
- $ref: '#/components/parameters/SegmentLimitQuery'
responses:
'200':
$ref: '#/components/responses/SegmentsResponse'
default:
$ref: '#/components/responses/ErrorResponse'
components:
schemas:
SegmentsLatestData:
type: object
description: 最近一期营收构成数据。
required:
- symbol
- segments
properties:
symbol:
type: string
description: 标准化股票代码。
segments:
type: array
description: 最近一期营收构成明细列表;没有可用明细时为空数组。
items:
$ref: '#/components/schemas/SegmentItem'
additionalProperties: false
SegmentsData:
type: object
required:
- symbol
- segments
properties:
symbol:
type: string
description: 标准化股票代码。
report:
type:
- string
- 'null'
description: history 请求回显的报告周期,常见值为 qf(季度报告)、saf(半年度报告)、af(年度报告)。
segments:
type: array
description: 营收构成明细列表。
items:
$ref: '#/components/schemas/SegmentItem'
additionalProperties: true
SegmentsEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/SegmentsData'
FinancialRowsData:
type: object
description: 财务报表数据。实测数值字段会以字符串返回以避免 JSON 浮点精度问题。
required:
- symbol
- kind
- rows
properties:
symbol:
type: string
description: 标准化股票代码。
kind:
type: string
enum:
- IS
- BS
- CF
description: 报表类型:IS 利润表、BS 资产负债表、CF 现金流量表。
rows:
type: array
description: 所选报表类型的指标记录列表;同一报告期通常包含多条记录。
items:
$ref: '#/components/schemas/FinancialRow'
additionalProperties: true
SegmentItem:
type: object
required:
- report
- category
- segment_name
- period_start
- period_end
- value
properties:
report:
type: string
description: 报告周期,常见值为 qf(季度报告)、saf(半年度报告)、af(年度报告)。
category:
type: string
description: 该记录所属维度,business=按业务,regional=按地区。
segment_name:
type: string
description: 业务类别或地区名称。
period_start:
type: string
format: date
description: 周期开始日期。
period_end:
type: string
format: date
description: 周期结束日期。
total_revenue:
type:
- string
- number
- 'null'
description: 该报告期总收入。
currency:
type:
- string
- 'null'
description: 币种。
percent:
type:
- string
- number
- 'null'
description: 该业务类别或地区收入占当期总收入的百分比,例如 79.74 表示 79.74%。
value:
type:
- string
- number
- 'null'
description: 该业务类别或地区的收入金额。
additionalProperties: true
FinancialRow:
type: object
required:
- kind
- period_type
- fiscal_year
- fiscal_period
- period_end
- field_name
- indicator_title
- value
properties:
kind:
type: string
enum:
- IS
- BS
- CF
description: 报表类型:IS 利润表、BS 资产负债表、CF 现金流量表。
field_name:
type: string
description: 财务指标字段代码,取值见对应财务报表页面的财务字段字典。
indicator_title:
type: string
description: 指标标题。
field_display:
type: string
description: 带单位的展示名称。
value:
oneOf:
- type: string
- type: number
- type: 'null'
description: 字段值。
fiscal_year:
type: integer
description: 财年。
fiscal_period:
type: string
description: 财务周期。
period_type:
type: string
description: 财务周期类型,常见值包括 q1(第一季度)、q2(第二季度)、q3(第三季度)、q4(第四季度)、saf(半年度)、af(年度)、ttm(滚动近12个月)。
period_end:
type: string
format: date
description: 报告期结束日期。
currency:
type:
- string
- 'null'
description: 币种。
is_percent:
type: boolean
description: 是否为百分比指标。
yoy:
type:
- string
- number
- 'null'
description: 同比值。
ratio:
type:
- string
- number
- 'null'
description: 比率值。
additionalProperties: true
SegmentsLatestEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/SegmentsLatestData'
SuccessEnvelope:
type: object
required:
- code
- data
properties:
code:
type: integer
const: 0
description: 业务状态码,成功为 0。
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: {}
FinancialRowsEnvelope:
allOf:
- $ref: '#/components/schemas/SuccessEnvelope'
- type: object
properties:
data:
$ref: '#/components/schemas/FinancialRowsData'
parameters:
SegmentCategoryQuery:
name: category
in: query
required: false
schema:
type: string
enum:
- business
- regional
description: 营收构成维度:`business` 按业务;`regional` 按地区。不传返回全部可用维度。
TTMKindQuery:
name: kind
in: query
required: true
schema:
type: string
enum:
- IS
- CF
description: 报表类型:`IS` 利润表或 `CF` 现金流量表
ReportQuery:
name: report
in: query
required: false
schema:
type: string
examples:
- qf
- saf
- af
description: 报告周期:`qf` 季度报告、`saf` 半年度报告、`af` 年度报告
TypeQuery:
name: type
in: query
required: false
schema:
type: string
enum:
- stock
description: 产品类型,当前支持 `stock`
NQuery:
name: n
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 20
description: 返回期数,范围 `1–20`
KindQuery:
name: kind
in: query
required: true
schema:
type: string
enum:
- IS
- BS
- CF
description: 报表类型:`IS` 利润表、`BS` 资产负债表、`CF` 现金流量表
PeriodTypeQuery:
name: period_type
in: query
required: false
schema:
type: string
default: q1,q2,q3,q4
pattern: ^(q1|q2|q3|q4|saf|af)(,(q1|q2|q3|q4|saf|af))*$
examples:
- q1
- saf
- af
- q1,q2,q3,q4
description: 财务周期类型:`q1` 第一季度、`q2` 第二季度、`q3` 第三季度、`q4` 第四季度、`saf` 半年度、`af` 年度;多个值用逗号分隔
SymbolQuery:
name: symbol
in: query
required: true
schema:
type: string
examples:
- AAPL
- '700'
- '600519'
- AAPL.US
- 700.HK
- 600519.SH
description: 股票代码
SegmentLimitQuery:
name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 1000
default: 200
description: 返回条数,默认 200,范围 `1–1000`
responses:
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
SegmentsResponse:
description: 历史营收构成响应。
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentsEnvelope'
SegmentsLatestResponse:
description: 营收构成响应。
content:
application/json:
schema:
$ref: '#/components/schemas/SegmentsLatestEnvelope'
FinancialRowsResponse:
description: 近期财务报表响应。
content:
application/json:
schema:
$ref: '#/components/schemas/FinancialRowsEnvelope'
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 或格式正确的成功空响应。