> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Get Financial Metrics

> 某家公司跨期的估值、利润率和回报率等计算比率。

某家公司随时间变化的计算比率，每期约 49 项：`market_cap`、`enterprise_value`、`price_to_earnings_ratio`、`price_to_book_ratio`、`price_to_sales_ratio`、`enterprise_value_to_ebitda_ratio`、`free_cash_flow_yield`、`peg_ratio`、`gross_margin`、`operating_margin`、`net_margin`、`return_on_equity`、`return_on_assets`、`return_on_invested_capital`，以及周转率和流动性比率，每项都带 `report_period` 和 `fiscal_period` 标记。`period` 为必填；用 `ticker` 或 `cik` 指定公司。适合用于查看某个比率跨期的走势。如果只需要当前值，[`get_financial_financial_metrics_snapshot`](https://aisa.one/docs/zh/api-reference/financial/get_financial-metrics-snapshot) 只返回一行，数据量小得多。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/financial/get_financial-metrics)

## 请求规范

* **方法与路径:** GET /apis/v1/financial/financial-metrics
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/financial/financial-metrics`
* **cik:** query; 可选
* **cursor:** query; 可选
* **exchange:** query; 可选
* **filing\_date:** query; 可选
* **filing\_date\_gt:** query; 可选
* **filing\_date\_gte:** query; 可选
* **filing\_date\_lt:** query; 可选
* **filing\_date\_lte:** query; 可选
* **isin:** query; 可选
* **limit:** query; 可选
* **market:** query; 可选
* **period:** query; 必填
* **report\_period:** query; 可选
* **report\_period\_gt:** query; 可选
* **report\_period\_gte:** query; 可选
* **report\_period\_lt:** query; 可选
* **report\_period\_lte:** query; 可选
* **ticker:** query; 可选

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/financial.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "get_financial_financial_metrics",
  "method": "GET",
  "path": "/apis/v1/financial/financial-metrics",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "The Central Index Key (CIK) of the company. Can be used instead of ticker.",
      "in": "query",
      "name": "cik",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.",
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "deprecated": true,
      "description": "Deprecated alias of `market`: `LSE` means `market=UK`. Existing requests keep working. France has no alias: name it with `market=FR`.",
      "in": "query",
      "name": "exchange",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "Filter by exact SEC filing date in YYYY-MM-DD format. Rows without a known filing date are excluded.",
      "in": "query",
      "name": "filing_date",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by SEC filing date greater than date in YYYY-MM-DD format. Rows without a known filing date are excluded.",
      "in": "query",
      "name": "filing_date_gt",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by SEC filing date greater than or equal to date in YYYY-MM-DD format. Rows without a known filing date are excluded.",
      "in": "query",
      "name": "filing_date_gte",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by SEC filing date less than date in YYYY-MM-DD format. Rows without a known filing date are excluded.",
      "in": "query",
      "name": "filing_date_lt",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by SEC filing date less than or equal to date in YYYY-MM-DD format. Useful for point-in-time queries: returns only data that was publicly filed by the given date. Rows without a known filing date are excluded.",
      "in": "query",
      "name": "filing_date_lte",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "The ISIN (International Securities Identification Number) of a non-US listing. An alternative to `ticker` and `market`.",
      "in": "query",
      "name": "isin",
      "required": false,
      "schema": {
        "type": "string"
      }
    },
    {
      "description": "The maximum number of results to return. This is the total across all pages, not a page size: each page holds up to 10 records, linked by `next_page_url`.",
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
        "type": "integer"
      }
    },
    {
      "description": "The market the company is listed in: `US` (the default), `UK` or `FR`. Any ticker of the company, including a second share class, returns the company's metrics. Price-based values (market cap, enterprise value, valuation ratios, dividend yield) are not yet available for UK tickers.",
      "in": "query",
      "name": "market",
      "required": false,
      "schema": {
        "enum": [
          "US",
          "UK",
          "FR"
        ],
        "type": "string"
      }
    },
    {
      "description": "The time period for the financial data.",
      "in": "query",
      "name": "period",
      "required": true,
      "schema": {
        "enum": [
          "annual",
          "quarterly",
          "ttm"
        ],
        "type": "string"
      }
    },
    {
      "description": "Filter by exact report period date in YYYY-MM-DD format.",
      "in": "query",
      "name": "report_period",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by report period greater than date in YYYY-MM-DD format.",
      "in": "query",
      "name": "report_period_gt",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by report period greater than or equal to date in YYYY-MM-DD format.",
      "in": "query",
      "name": "report_period_gte",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by report period less than date in YYYY-MM-DD format.",
      "in": "query",
      "name": "report_period_lt",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "Filter by report period less than or equal to date in YYYY-MM-DD format.",
      "in": "query",
      "name": "report_period_lte",
      "required": false,
      "schema": {
        "format": "date",
        "type": "string"
      }
    },
    {
      "description": "The ticker symbol of the company. Required if cik is not provided.",
      "in": "query",
      "name": "ticker",
      "required": false,
      "schema": {
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

请求费用。 默认请求预估费用：\$0.02 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/financial.json GET /apis/v1/financial/financial-metrics
openapi: 3.1.0
info:
  description: ''
  title: FinancialAPI
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    financial:
      description: ''
      title: FinancialAPI
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 1eb067a02d7d1b2cbe13ec3a6bc07fea01b0ebef6a9d35656d0c02c1ea101baf
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/financial/analyst-estimates
    - /apis/v1/financial/company/facts
    - /apis/v1/financial/company/facts/ticker
    - /apis/v1/financial/crypto/prices
    - /apis/v1/financial/crypto/prices/snapshot
    - /apis/v1/financial/earnings
    - /apis/v1/financial/earnings/press-releases
    - /apis/v1/financial/filings
    - /apis/v1/financial/filings/items
    - /apis/v1/financial/financial-metrics
    - /apis/v1/financial/financial-metrics/snapshot
    - /apis/v1/financial/financials
    - /apis/v1/financial/financials/balance-sheets
    - /apis/v1/financial/financials/cash-flow-statements
    - /apis/v1/financial/financials/income-statements
    - /apis/v1/financial/financials/search/line-items
    - /apis/v1/financial/financials/search/screener
    - /apis/v1/financial/financials/segmented-revenues
    - /apis/v1/financial/insider-trades
    - /apis/v1/financial/institutional-ownership
    - /apis/v1/financial/kpi/guidance
    - /apis/v1/financial/kpi/metrics
    - /apis/v1/financial/kpi/non-gaap
    - /apis/v1/financial/macro/interest-rates
    - /apis/v1/financial/macro/interest-rates/snapshot
    - /apis/v1/financial/news
    - /apis/v1/financial/prices
    - /apis/v1/financial/prices/snapshot
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:b49b91a9e53aadfd36aa9c8be94d8c4d516873d2a2e2e491db0b18656d03cac3
    facts_hash: 1eb067a02d7d1b2cbe13ec3a6bc07fea01b0ebef6a9d35656d0c02c1ea101baf
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: financial
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/financial/financial-metrics:
    get:
      tags:
        - Two
      summary: Get Financial Metrics
      description: >-
        Get financial metrics for a ticker, including valuation, profitability,
        efficiency, liquidity, leverage, growth, and per share metrics.
      operationId: get_financial_financial_metrics
      parameters:
        - description: 公司的中央索引键（CIK）。可代替 ticker 使用。
          in: query
          name: cik
          required: false
          schema:
            type: string
        - description: >-
            Opaque pagination cursor from a previous response's next_page_url.
            When provided, all other query parameters are ignored: the cursor
            carries the original request's filters. Treat it as opaque; do not
            construct or modify it.
          in: query
          name: cursor
          required: false
          schema:
            type: string
        - deprecated: true
          description: >-
            Deprecated alias of `market`: `LSE` means `market=UK`. Existing
            requests keep working. France has no alias: name it with
            `market=FR`.
          in: query
          name: exchange
          required: false
          schema:
            type: string
        - description: >-
            Filter by exact SEC filing date in YYYY-MM-DD format. Rows without a
            known filing date are excluded.
          in: query
          name: filing_date
          required: false
          schema:
            format: date
            type: string
        - description: >-
            Filter by SEC filing date greater than date in YYYY-MM-DD format.
            Rows without a known filing date are excluded.
          in: query
          name: filing_date_gt
          required: false
          schema:
            format: date
            type: string
        - description: >-
            Filter by SEC filing date greater than or equal to date in
            YYYY-MM-DD format. Rows without a known filing date are excluded.
          in: query
          name: filing_date_gte
          required: false
          schema:
            format: date
            type: string
        - description: >-
            Filter by SEC filing date less than date in YYYY-MM-DD format. Rows
            without a known filing date are excluded.
          in: query
          name: filing_date_lt
          required: false
          schema:
            format: date
            type: string
        - description: >-
            Filter by SEC filing date less than or equal to date in YYYY-MM-DD
            format. Useful for point-in-time queries: returns only data that was
            publicly filed by the given date. Rows without a known filing date
            are excluded.
          in: query
          name: filing_date_lte
          required: false
          schema:
            format: date
            type: string
        - description: >-
            The ISIN (International Securities Identification Number) of a
            non-US listing. An alternative to `ticker` and `market`.
          in: query
          name: isin
          required: false
          schema:
            type: string
        - description: >-
            The maximum number of results to return. This is the total across
            all pages, not a page size: each page holds up to 10 records, linked
            by `next_page_url`.
          in: query
          name: limit
          required: false
          schema:
            type: integer
        - description: >-
            The market the company is listed in: `US` (the default), `UK` or
            `FR`. Any ticker of the company, including a second share class,
            returns the company's metrics. Price-based values (market cap,
            enterprise value, valuation ratios, dividend yield) are not yet
            available for UK tickers.
          in: query
          name: market
          required: false
          schema:
            enum:
              - US
              - UK
              - FR
            type: string
        - description: 财务数据的时间段。
          in: query
          name: period
          required: true
          schema:
            enum:
              - annual
              - quarterly
              - ttm
            type: string
        - description: 按 YYYY-MM-DD 格式的确切报告期日期筛选。
          in: query
          name: report_period
          required: false
          schema:
            format: date
            type: string
        - description: 按报告周期筛选，报告周期须晚于 YYYY-MM-DD 格式的日期。
          in: query
          name: report_period_gt
          required: false
          schema:
            format: date
            type: string
        - description: 筛选报告期大于或等于 YYYY-MM-DD 格式指定日期的数据。
          in: query
          name: report_period_gte
          required: false
          schema:
            format: date
            type: string
        - description: 筛选报告周期早于指定日期的报告，日期格式为 YYYY-MM-DD。
          in: query
          name: report_period_lt
          required: false
          schema:
            format: date
            type: string
        - description: 筛选报告期小于或等于 YYYY-MM-DD 格式指定日期的数据。
          in: query
          name: report_period_lte
          required: false
          schema:
            format: date
            type: string
        - description: 公司的股票代码。如果未提供 cik，则此项为必填。
          in: query
          name: ticker
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response4F907C495Caf_FinancialMetricsResponse
          description: 某个 ticker 的历史财务指标和比率
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response4F907C495Caf_FinancialMetricsResponse:
      properties:
        accession_number:
          description: The SEC accession number of the filing.
          type:
            - string
            - 'null'
        asset_turnover:
          description: 营收除以平均总资产。
          type: number
        book_value_growth:
          description: 账面价值同比增长率。
          type: number
        book_value_per_share:
          description: 股东权益除以流通股数。
          type: number
        cash_ratio:
          description: 现金及现金等价物除以流动负债。
          type: number
        currency:
          description: 财务数据的报告币种。
          type: string
        current_ratio:
          description: 流动资产除以流动负债。
          type: number
        days_sales_outstanding:
          description: 该期间的平均应收账款除以收入。
          type: number
        debt_to_assets:
          description: 总债务除以总资产。
          type: number
        debt_to_equity:
          description: 总债务除以股东权益。
          type: number
        earnings_growth:
          description: 盈利同比增长率。
          type: number
        earnings_per_share:
          description: 净利润除以加权平均流通股数。
          type: number
        earnings_per_share_growth:
          description: 该期间内每股收益的增长。
          type: number
        ebitda_growth:
          description: 期内 EBITDA 增长。
          type: number
        enterprise_value:
          description: 公司的总价值（市值 + 债务 - 现金）。
          type: number
        enterprise_value_to_ebitda_ratio:
          description: 企业价值与 EBITDA 的比率。
          type: number
        enterprise_value_to_revenue_ratio:
          description: 企业价值与营收之比。
          type: number
        filing_date:
          description: >-
            Calendar day SEC accepted the filing, in Eastern Time (the SEC's
            operating timezone). Calendar-day pair to `filing_datetime`. Null
            when no dated SEC filing is linked to the row.
          format: date
          type:
            - string
            - 'null'
        filing_datetime:
          description: >-
            Sub-day timestamp recording when SEC accepted the filing, in Eastern
            Time. Sourced from SEC's `acceptanceDateTime` field on the EDGAR
            submissions API. Pairs with `filing_date` (calendar-day precision of
            the same event).
          format: date-time
          type:
            - string
            - 'null'
        filing_url:
          description: SEC 申报文件的 URL。
          format: uri
          type:
            - string
            - 'null'
        fiscal_period:
          description: The fiscal period of the financial metrics.
          type: string
        form_type:
          description: >-
            The SEC form this row was sourced from (`10-K`, `10-Q/A`, `20-F`,
            `S-1`, ...). The exact form as filed, so amendments keep their `/A`
            suffix. Null when `period` is `ttm`: a trailing twelve month window
            can span multiple filings, so we don't attribute it to one. A
            `quarterly` row can carry `10-K` when the fourth quarter is derived
            from the fiscal-year filing.
          type:
            - string
            - 'null'
        free_cash_flow_growth:
          description: 该期间内自由现金流的增长。
          type: number
        free_cash_flow_per_share:
          description: 自由现金流除以流通股数。
          type: number
        free_cash_flow_yield:
          description: 自由现金流收益率。
          type: number
        gross_margin:
          description: 毛利润占营收的百分比。
          type: number
        interest_coverage:
          description: EBIT 除以利息支出。
          type: number
        inventory_turnover:
          description: 销售成本除以平均存货。
          type: number
        net_margin:
          description: 净利润占收入的百分比。
          type: number
        next_page_url:
          description: >-
            Absolute URL of the next page of results. Present only when more
            results remain; request it as-is to continue. Each page holds up to
            10 records.
          type: string
        operating_cash_flow_ratio:
          description: 经营现金流除以流动负债。
          type: number
        operating_cycle:
          description: 存货周转率 + 应收账款周转率。
          type: number
        operating_income_growth:
          description: 该期间的营业利润增长额。
          type: number
        operating_margin:
          description: 营业收入占营收的百分比。
          type: number
        payout_ratio:
          description: 已支付股息占净利润的百分比。
          type: number
        peg_ratio:
          description: 市盈增长比率。
          type: number
        period:
          description: The time period of the financial metrics.
          enum:
            - quarterly
            - ttm
            - annual
          type: string
        price_to_book_ratio:
          description: 市净率。
          type: number
        price_to_earnings_ratio:
          description: 市盈率。
          type: number
        price_to_sales_ratio:
          description: 市销率。
          type: number
        quick_ratio:
          description: 速动资产除以流动负债。
          type: number
        receivables_turnover:
          description: 收入除以平均应收账款。
          type: number
        report_period:
          description: The reporting period of the financial metrics.
          format: date
          type: string
        return_on_assets:
          description: 净利润占总资产的百分比。
          type: number
        return_on_equity:
          description: 净利润占股东权益的百分比。
          type: number
        return_on_invested_capital:
          description: 税后净营业利润占投入资本的百分比。
          type: number
        revenue_growth:
          description: 营收同比增长率。
          type: number
        ticker:
          description: 公司的股票代码。
          type: string
        working_capital_turnover:
          description: 收入除以平均营运资本。
          type: number
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.