> ## 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

# 美股分析师

> 基于财务数据、SEC 文件、新闻和市场情绪生成美股研究报告。

[在 GitHub 上查看 →](https://github.com/AIsa-team/agent-skills/tree/main/financial/us-stock-analyst)

**为智能体打造的股票研究报告。** 汇集财务数据、新闻、SEC 文件、市场情绪与模型综合分析，形成一站式美股分析工作流。

## 安装

```bash npx skills theme={null}
npx skills add AIsa-team/agent-skills --skill us-stock-analyst
```

```bash AIsa CLI theme={null}
npm install -g @aisa-one/cli
aisa skills install us-stock-analyst
```

安装完成后请启动新的智能体会话，以加载该 Skill。

## 智能体能用它做什么？

> [card] 股票研究报告
>
> 为美股上市公司生成结构化分析报告。

> [card] 文件上下文
>
> 利用 SEC 文件和公司披露信息。

> [card] 情绪综合分析
>
> 引入新闻与社交信号作为参考。

> [card] 投资备忘录
>
> 总结风险、催化剂和关注事项。

## 🔥 你可以做什么？

### 投资研究

```
"分析 NVDA：财务指标、分析师预估、内部人交易、
新闻情绪和 AI 驱动的估值"
```

### 投资组合监控

```
"跟踪我的投资组合（AAPL、MSFT、GOOGL）：每日更新指标、
新闻和情绪变化"
```

### 财报分析

```
"完整的特斯拉 Q4 财报分析：实际业绩 vs 预估、指引、
股价反应、分析师更新"
```

### 竞品分析

```
"对比 AMD vs NVDA：财务数据、增长、估值、市场情绪"
```

### 筛选与发现

```
"查找 P/E < 30、营收增长 > 20%、
且内部人买入活跃的科技股"
```

## 快速开始

```bash theme={null}
export AISA_API_KEY="your-key"
```

***

## 核心能力

### 📊 财务数据（MarketPulse APIs）

**实时财务指标**

```bash theme={null}
curl "https://api.aisa.one/apis/v1/financial/financial-metrics/snapshot?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

返回：市值、P/E 比率、营收、EPS、利润率、ROE、资产负债率等。

**历史股价**

```bash theme={null}
# Daily prices for last 30 days
curl "https://api.aisa.one/apis/v1/financial/prices?ticker=AAPL&start_date=2025-01-01&end_date=2025-01-31&interval=day&interval_multiplier=1" \
  -H "Authorization: Bearer $AISA_API_KEY"

# 5-minute intraday data
curl "https://api.aisa.one/apis/v1/financial/prices?ticker=AAPL&start_date=2025-02-07&end_date=2025-02-07&interval=minute&interval_multiplier=5" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**财务报表**

```bash theme={null}
# All statements (income, balance, cash flow)
curl "https://api.aisa.one/apis/v1/financial/financial_statements/all?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**分析师预估**

```bash theme={null}
# EPS forecasts and ratings
curl "https://api.aisa.one/apis/v1/financial/analyst/eps?ticker=AAPL&period=annual" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**内部人交易**

```bash theme={null}
# Track insider buy/sell activity
curl "https://api.aisa.one/apis/v1/financial/insider/trades?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**机构持股**

```bash theme={null}
# See who owns the stock
curl "https://api.aisa.one/apis/v1/financial/institutional/ownership?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**SEC 文件**

```bash theme={null}
# Access 10-K, 10-Q, 8-K filings
curl "https://api.aisa.one/apis/v1/financial/sec/filings?ticker=AAPL" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

***

### 📰 新闻与研究

**公司新闻**

```bash theme={null}
curl "https://api.aisa.one/apis/v1/financial/news?ticker=AAPL&limit=10" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**网页搜索（新闻与文章）**

```bash theme={null}
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/web?query=AAPL+stock+analysis&max_num_results=10" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

**学术研究**

```bash theme={null}
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/scholar?query=semiconductor+industry+analysis&max_num_results=5" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

***

### 🐦 社交情绪

**Twitter 搜索**

```bash theme={null}
curl "https://api.aisa.one/apis/v1/twitter/tweet/advanced_search?query=\$AAPL&queryType=Latest" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

***

### 📺 视频内容

**YouTube 搜索（财报电话会、分析）**

```bash theme={null}
curl "https://api.aisa.one/apis/v1/youtube/search?engine=youtube&q=AAPL+earnings+call&gl=us&hl=en" \
  -H "Authorization: Bearer $AISA_API_KEY"
```

***

### 🤖 AI 分析（多模型）

**LLM 网关（兼容 OpenAI）**

```bash theme={null}
curl -X POST "https://api.aisa.one/v1/chat/completions" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.4",
    "messages": [
      {
        "role": "system",
        "content": "You are a professional equity analyst."
      },
      {
        "role": "user",
        "content": "Analyze Apple stock investment prospects"
      }
    ],
    "temperature": 0.3,
    "max_tokens": 2000
  }'
```

**支持的模型：**

* GPT-4、GPT-4 Turbo（OpenAI）
* Claude 3 Opus、Sonnet、Haiku（Anthropic）
* Gemini 1.5 Pro、Ultra（Google）
* Qwen Max、Plus（Alibaba）
* DeepSeek V2（DeepSeek）
* Grok（xAI）

***

## Python 客户端

```bash theme={null}
# Basic analysis
python3 scripts/stock_analyst.py analyze --ticker AAPL

# Standard analysis with multiple models
python3 scripts/stock_analyst.py analyze --ticker NVDA --depth standard --models gpt-5.4 claude-opus-4-8

# Deep analysis (all data sources)
python3 scripts/stock_analyst.py analyze --ticker TSLA --depth deep

# Quick screening
python3 scripts/stock_analyst.py analyze --ticker MSFT --depth quick

# Save report to file
python3 scripts/stock_analyst.py analyze --ticker GOOGL --output report.json
```

***

## 分析深度选项

| 模式 | 耗时 | 数据来源 |
| - | - | - |
| **quick** | \~10s | 指标、新闻、Twitter、基础 AI |
| **standard** | \~20s | + 分析师预估、内部人交易、YouTube |
| **deep** | \~30s | + 财务报表、机构持股、SEC、学术研究 |

***

## API 参考

| 类别 | 端点 | 方法 |
| - | - | - |
| **Financial Metrics** | `/financial/financial-metrics/snapshot` | GET |
| **Stock Prices** | `/financial/prices` | GET |
| **News** | `/financial/news` | GET |
| **Statements** | `/financial/financial_statements/*` | GET |
| **Analyst Estimates** | `/financial/analyst/eps` | GET |
| **Insider Trades** | `/financial/insider/trades` | GET |
| **Institutional** | `/financial/institutional/ownership` | GET |
| **SEC Filings** | `/financial/sec/filings` | GET |
| **Web Search** | `/scholar/search/web` | POST |
| **Scholar Search** | `/scholar/search/scholar` | POST |
| **Twitter** | `/twitter/tweet/advanced_search` | GET |
| **YouTube** | `/youtube/search` | GET |
| **LLM** | `/v1/chat/completions` | POST |

每个响应都包含 `usage.cost` 和 `usage.credits_remaining`。

***

## 示例输出

```json theme={null}
{
  "ticker": "NVDA",
  "analysis_date": "2025-02-07T10:30:00Z",
  
  "investment_summary": "NVIDIA maintains dominant position in AI chip market with strong data center revenue growth. Recent Blackwell launch positions company for continued expansion...",
  
  "key_metrics": {
    "market_cap": 1780500000000,
    "pe_ratio": 68.5,
    "revenue": 60922000000,
    "revenue_growth": 1.26,
    "profit_margin": 0.489,
    "roe": 1.152
  },
  
  "sentiment_analysis": {
    "sentiment": "bullish",
    "confidence": "high",
    "key_themes": ["AI dominance", "Data center growth", "Blackwell launch"],
    "summary": "Overwhelmingly positive sentiment following Q4 earnings beat"
  },
  
  "valuation": {
    "assessment": "fairly_valued",
    "price_target_12m": 850.00,
    "reasoning": "Premium valuation justified by AI market leadership and strong growth trajectory"
  },
  
  "data_sources": {
    "Financial Metrics": "Available",
    "Stock News": 10,
    "Analyst Estimates": "Available",
    "Insider Trades": 15,
    "Twitter": "Available",
    "YouTube": 5
  }
}
```

***

## 定价

每次分析按其调用的 API 次数和 LLM token 消费计费；深度模式会调用更多数据源。当前每次调用的价格见 [aisa.one/api](https://aisa.one/api)，模型价格见 [aisa.one/models](https://aisa.one/models)。每个响应都会在 `usage` 中报告其费用。

***

## 使用场景

### 1. 投资研究

在投资前筛选和分析股票：

```python theme={null}
analyst.analyze_stock("NVDA", depth="deep")
```

### 2. 投资组合监控

每日更新你的持仓情况：

```python theme={null}
for ticker in ["AAPL", "MSFT", "GOOGL"]:
    report = analyst.analyze_stock(ticker, depth="quick")
```

### 3. 财报季

全面的财报分析：

```python theme={null}
analyst.analyze_stock("TSLA", depth="standard")
# Check estimates, actual results, guidance, reaction
```

### 4. 内部人追踪

监控内部人交易活动：

```python theme={null}
report = analyst.analyze_stock("META", depth="standard")
print(report['raw_data']['insider_trades'])
```

### 5. 情绪分析

跟踪市场认知：

```python theme={null}
report = analyst.analyze_stock("COIN", depth="standard")
print(report['sentiment_analysis'])
```

***

## 合规

**免责声明（始终包含）：**

> This analysis is for informational purposes only and should not be
> considered personalized investment advice. Please conduct your own
> research and consult with licensed financial advisors before making
> investment decisions.

**监管合规：**

* SEC Rule 15c2-1（非投资建议）
* FINRA 法规（仅供参考）
* 符合 GDPR 数据隐私要求

***

## 完整 API 文档

* **API 参考**：[https://aisa.one/docs/api-reference](https://aisa.one/docs/api-reference.md)
* **完整文档**：[https://aisa.one/docs/llms.txt](https://aisa.one/docs/llms.txt)
* **支持**：[support@aisa.one](mailto:support@aisa.one)
* **Discord**：[https://discord.gg/aisa](https://discord.gg/aisa)

***

## 关于 AIsa

**AIsa** — 为 AI 智能体打造的统一 API 基础设施。

单一 API Key。按量付费。智能体原生。

* 官网：[https://aisa.one](https://aisa.one)
* 文档：[https://aisa.one/docs](https://aisa.one/docs)

## 开始使用

1. 在 [aisa.one](https://aisa.one) 注册并在控制台创建 API key。
2. 在终端中设置：`export AISA_API_KEY="your-key"`。
3. 使用[安装](#安装)部分中的任一命令安装该 Skill，然后启动新的智能体会话。

## 相关

> [card] [MarketPulse](https://aisa.one/docs/zh/agent-skills/marketpulse.md)
>
> 深度财务与文件数据。

> [card] [股票与加密货币分析](https://aisa.one/docs/zh/agent-skills/stock-analysis.md)
>
> 通用资产分析工作流。

> [card] [Financial API 参考](https://aisa.one/docs/zh/api-reference/financial/get_analyst-estimates.md)
>
> 底层财务端点文档。


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