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

# Build a Market Intelligence Agent with AIsa

> Combine prices, financial metrics, SEC filings, news, and prediction-market signals in a verifiable market-research workflow your agent runs through AIsa.

## The problem

Investors, analysts, and strategy teams want a fast read on a company or event without stitching together five data vendors. The risk is a report that blends stale prices, unsourced claims, and speculation into one confident paragraph. A good outcome separates observed data (with timestamps and units), source-backed events (with filing or article links), and clearly labeled signals and scenarios.

## Prompt

Give this to your agent once AIsa is [connected via MCP](https://aisa.one/docs/agent-quickstart.md):

```txt wrap theme={null}
Use AIsa to build a market brief on ticker <TICKER> for <time horizon, e.g. the last quarter>.
Find the right AIsa tools with `search` and quote paid calls with `batch_quote`. Ask me before any paid call, with the list of calls you plan to make.
Collect: current price snapshot, key financial metrics, the most recent 10-Q/10-K and its relevant items, recent company news, and any related prediction markets.
Record the timestamp and units for every number. Verify material news against filings or company releases.
Return sections: Observed data | Source-backed events | Signals (prediction markets, sentiment) | Interpretation | Risks and missing evidence | Data cutoff.
This is read-only research: do not place trades, change portfolios, or set alerts.
```

Variant for an event rather than a company: `Track <event> using prediction markets and news; label market odds as expectations, not outcomes.`

## APIs and Skills used

Through MCP, your agent reaches these via a few meta tools at `https://mcp.aisa.one/mcp`: `search`, `list_categories`, `get_details`, and `batch_quote` are free; `batch_use` (up to 20 calls) is billed per call.

| Step | What the agent calls | Reference |
| - | - | - |
| Current price | Last price, day change, timestamp | [Stock Price Snapshot](https://aisa.one/docs/api-reference/financial/get_prices-snapshot.md) |
| History | OHLCV bars for a date range | [Historical Stock Prices](https://aisa.one/docs/api-reference/financial/get_prices.md) |
| Fundamentals | Current ratio set | [Financial Metrics Snapshot](https://aisa.one/docs/api-reference/financial/get_financial-metrics-snapshot.md) |
| Filings | Filing index, then item text | [SEC Filings](https://aisa.one/docs/api-reference/financial/get_filings.md), [Filing Items](https://aisa.one/docs/api-reference/financial/get_filings-items.md) |
| News | Recent headlines with source and link | [Company News](https://aisa.one/docs/api-reference/financial/get_news.md) |
| Market signals | Polymarket and Kalshi markets | [Polymarket Markets](https://aisa.one/docs/api-reference/prediction-market/get_polymarket-markets.md), [Kalshi Markets](https://aisa.one/docs/api-reference/prediction-market/get_kalshi-markets.md) |
| Reusable workflow | Equity data, filings, estimates, macro | [MarketPulse](https://aisa.one/docs/agent-skills/marketpulse.md), [Trend Forecast](https://aisa.one/docs/agent-skills/trend-forecast.md) |
| Synthesis | A supported model, after retrieval | [Models](https://aisa.one/docs/guides/models.md) |

## Example output

> [!NOTE]
>
> Illustrative only. The ticker, figures, and links are placeholders, not real market data.

```md theme={null}
## EXMPL (Example Corp): brief, data cutoff 2026-01-15 16:00 ET

| Observed data      | Value        | As of            | Source            |
| ------------------ | ------------ | ---------------- | ----------------- |
| Last price         | <price> USD  | 2026-01-15 16:00 | prices/snapshot   |
| Gross margin (TTM) | <x>%         | 2026-01-15       | metrics/snapshot  |

Source-backed events
- 10-Q filed 2026-01-08; Item 1A adds a new supply-chain risk. [filing link]

Signals (not outcomes)
- A prediction market on "<event question>" trades at <p> implied probability.

Risks and missing evidence
- No guidance update found after the 10-Q.
```

## Guardrails

* **Separate data layers.** Prices and metrics describe what happened; filings and releases provide primary context; news is for discovery; and prediction markets and social chatter are signals, not facts.
* **Timestamp everything.** Record units, currency, and observation time. Do not combine values from different sources without checking definitions and frequency.
* **Label forecasts.** A scenario or forecast is never presented as a verified fact, and the output is not personalized financial advice.
* **Read-only by default.** Do not place trades, alter portfolios, publish, or trigger alerts unless the user explicitly requests that separate action and an authorized path exists.
* **Quote, then ask.** Get a free quote with `batch_quote` and run the same calls with `batch_use` only after approval. A quote checks the estimate, not the final charge. See [Billing & Credits](https://aisa.one/docs/guides/pricing.md).
* **When AIsa may not be necessary:** a dedicated market-data provider is simpler if you need only one dataset and already manage the analysis, model, and billing layers.

## Related

> [card] [MarketPulse](https://aisa.one/docs/agent-skills/marketpulse.md)
>
> Equity data Skill for agents.

> [card] [Prediction Market Data](https://aisa.one/docs/agent-skills/prediction-market-data.md)
>
> Polymarket and Kalshi data.

> [card] [Research Agent](https://aisa.one/docs/use-cases/research-agent.md)
>
> Source-backed web research.

> [card] [Security & Privacy](https://aisa.one/docs/guides/security.md)
>
> Agent safety controls.


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