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

# 简介

> 面向开发者和 AI Agent 的 AI 原生金融数据平台

# LLMQuant Data API

LLMQuant Data 提供金融数据与量化知识的统一访问接口 —— 专为开发者和 AI Agent 设计。

<CardGroup cols={2}>
  <Card title="专有知识数据" icon="book-open" href="/zh-CN/api/knowledge/wiki-search">
    50,000+ 篇 Quant Wiki + 1,200+ 篇研究论文摘要 —— 语义检索 + 全文读取。
  </Card>

  <Card title="市场行情" icon="chart-line" href="/zh-CN/market-coverage">
    美股 30+ 年日线 OHLCV、加密货币 K 线与快照、50+ 精选宏观指标。
  </Card>

  <Card title="SEC 与机构持仓" icon="file-invoice" href="/zh-CN/api/filings/13f-top-managers">
    10-K / 10-Q / 8-K 申报文件浏览与读取。Form 13F：Top 1,000 机构管理人 × 至少最近 4 季度。
  </Card>

  <Card title="MCP Server" icon="plug" href="/zh-CN/integration/mcp-server">
    `@llmquant/data-mcp` 一份配置接入 Claude / Cursor / Codex / Gemini CLI —— 全部 tool 一次到位。
  </Card>
</CardGroup>

## 快速开始

<Steps>
  <Step title="获取 API Key" icon="key">
    登录 [控制台](https://llmquantdata.com/dashboard)，在 **API Keys** 页面复制一个 Key，存为环境变量：

    ```bash theme={null}
    export LLMQUANT_API_KEY=your_api_key_here
    ```

    <Tip>
      不要硬编码在源码里。详见 [认证](/zh-CN/authentication)。
    </Tip>
  </Step>

  <Step title="通过 MCP 接入（推荐）" icon="plug">
    原生 MCP 接入 —— 你的 agent 直接调用 26 个数据与个人 context 工具，**不需要任何 glue code**。

    **把下面这段 prompt 丢进 agent —— 它会从 GitHub 读 canonical 配置：**

    ```text theme={null}
    Install the LLMQuant data-mcp server in this environment by following https://github.com/LLMQuant/data-mcp
    ```

    <Accordion title="或者手动安装" icon="terminal">
      <CodeGroup>
        ```bash Claude Code theme={null}
        claude mcp add llmquant-data \
          -e LLMQUANT_API_KEY=$LLMQUANT_API_KEY \
          -- npx -y @llmquant/data-mcp
        ```

        ```bash Codex CLI theme={null}
        codex mcp add llmquant-data \
          --env LLMQUANT_API_KEY=$LLMQUANT_API_KEY \
          -- npx -y @llmquant/data-mcp
        ```

        ```bash Gemini CLI theme={null}
        gemini mcp add -s user \
          -e LLMQUANT_API_KEY=$LLMQUANT_API_KEY \
          llmquant-data \
          npx -y @llmquant/data-mcp
        ```
      </CodeGroup>

      用 Cursor / Claude Desktop / 其他 MCP runtime？看完整 [MCP Server 接入](/zh-CN/integration/mcp-server)。
    </Accordion>
  </Step>

  <Step title="从 agent 试一下" icon="sparkles">
    重启客户端，把下面任意一句丢进 chat：

    <Prompt description="Wiki 研究">
      在 Quant Wiki 搜一下"动量因子"，把 top hit 完整读出来。
    </Prompt>

    <Prompt description="实时行情">
      BTC 现在多少？
    </Prompt>
  </Step>

  <Step title="或直接用 HTTP API" icon="terminal">
    不在 MCP runtime 上？直接打 REST API（base URL: `https://api.llmquantdata.com`）：

    ```python theme={null}
    import os, requests

    headers = {"Authorization": f"Bearer {os.environ['LLMQUANT_API_KEY']}"}
    url = "https://api.llmquantdata.com/api/equity/historical?ticker=AAPL&limit=5"
    print(requests.get(url, headers=headers).json())
    ```

    左侧导航有所有 endpoint 的参考文档。
  </Step>
</Steps>
