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

# Stock & Crypto Analysis

> Analyze stock and crypto tickers with live market context.

[View on GitHub →](https://github.com/AIsa-team/agent-skills/tree/main/financial/stock-analysis)

**Stock and crypto analysis with live data.** Analyze tickers, risk signals, targets, and market context through AIsa.

## Install

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

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

Start a new agent session after installing so the skill loads.

## What can agents do with it?

> [card] Analysis reports
>
> Create structured stock or crypto analysis reports.

> [card] Risk flags
>
> Surface volatility, liquidity, and catalyst risks.

> [card] Levels and targets
>
> Suggest watch levels, targets, and stops for review.

> [card] Scoring
>
> Compare opportunities with a repeatable scoring rubric.

## Setup

This skill requires an AIsa API key. Set it via plugin configuration or environment variable:

```bash theme={null}
export AISA_API_KEY=your_key_here
export AISA_BASE_URL=https://api.aisa.one/v1   # optional
export AISA_MODEL=gpt-4o                         # optional
```

Or use the plugin's `userConfig` values (set automatically when the plugin is enabled).

## Usage

Run the analysis script with one or more ticker symbols:

```bash theme={null}
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-analysis/scripts/analyze_stock.py" AAPL
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-analysis/scripts/analyze_stock.py" BTC-USD ETH-USD
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-analysis/scripts/analyze_stock.py" AAPL MSFT GOOGL
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-analysis/scripts/analyze_stock.py" AAPL --fast
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-analysis/scripts/analyze_stock.py" AAPL --output json
```

### Arguments

* **Tickers**: One or more stock symbols (e.g., `AAPL`, `MSFT`) or crypto symbols (e.g., `BTC-USD`, `ETH-USD`)
* `--fast`: Skip slow analyses (insider trading, detailed news) for faster results
* `--output json`: Append a structured JSON summary after the analysis

### Multi-Ticker Comparison

When multiple tickers are provided, the script produces individual analyses followed by a ranked comparison table:

| Ticker | Score | Signal | Key Strength | Key Risk |
| - | - | - | - | - |

## 8-Dimension Scoring (Stocks)

| # | Dimension | Weight |
| - | - | - |
| 1 | Earnings Surprise | 30% |
| 2 | Fundamentals (P/E, margins, growth) | 20% |
| 3 | Analyst Sentiment | 20% |
| 4 | Historical Patterns | 10% |
| 5 | Market Context (VIX, SPY/QQQ) | 10% |
| 6 | Sector Performance | 15% |
| 7 | Momentum (RSI, 52w range) | 15% |
| 8 | Sentiment (Fear/Greed, shorts, insiders) | 10% |

## 3-Dimension Scoring (Crypto)

| # | Dimension | Weight |
| - | - | - |
| 1 | Market Cap & Category | 40% |
| 2 | BTC Correlation (30-day) | 30% |
| 3 | Momentum (RSI, range, volume) | 30% |

## Risk Flags

Automatically detected: Pre-earnings, Post-spike, Overbought, Risk-Off, Breaking News

## Output

Final recommendation includes: **Score (0-10)**, **Signal (BUY/HOLD/SELL)**, **Confidence (High/Medium/Low)**, and **Entry / Target / Stop prices**.

**NOT FINANCIAL ADVICE.** For informational purposes only.

## Get started

1. Sign up at [aisa.one](https://aisa.one) and create an API key in the console.
2. Set it in your shell: `export AISA_API_KEY="your-key"`.
3. Install the skill with one of the commands under [Install](#install), then start a new agent session.

## Related

> [card] [AIsa Market](https://aisa.one/docs/agent-skills/market.md)
>
> Broad stock and crypto market data.

> [card] [Watchlist Management](https://aisa.one/docs/agent-skills/stock-watchlist.md)
>
> Track targets, stops, and alert checks.

> [card] [US Stock Analyst](https://aisa.one/docs/agent-skills/us-stock-analyst.md)
>
> Deeper US equity analysis reports.


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