# Analyse an Investment Portfolio

> Analyses an investment portfolio, including opening and closing reconciliation, FX and fair-value movements and capital gains and losses. You must supply…

POST /api/v1/skills/portfolios.analyse/invoke

Analyses an investment portfolio, including opening and closing reconciliation, FX and fair-value movements and capital gains and losses. You must supply topic, a plain-language description of what to analyse, and can set the jurisdiction (UK, AU, US or CA among others), period and entity. It returns an analysis, a summary, findings and a confidence score.

Body parameters

topic string Required

What to analyse in the portfolio, in plain language (up to 5,000 characters).

jurisdiction enum · default GB

Jurisdiction whose rules apply: one of AU, GB, CA, US or NZ.

AU GB CA US NZ

period string

Period covered by the analysis, as a free-text label such as 2025-26.

entity_name string

Name of the entity that holds the portfolio, such as a family company.

client_context object

Extra client facts as key-value pairs, such as currency or tax allowances.

Returns

Skill executed successfully

skill string Required

Example analyse_investment_portfolio

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.analysis string · default

output.summary string · default

output.findings array of strings

output.confidence number · default 0

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← Analyse Client Financials](https://heyarchie.com/en-gb/developers/api-reference/analysis/analyse-client-financials/)[Next Propose CCH-Axcess-style Tax-Line Mappings →](https://heyarchie.com/en-gb/developers/api-reference/analysis/propose-cch-axcess-style-tax-line-mappings/)

```
curl https://uk.heyarchie.com/api/v1/skills/portfolios.analyse/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "topic": "string",
       "jurisdiction": null,
       "period": null,
       "entity_name": null,
       "client_context": {}
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "portfolios.analyse",
    topic="string",
    jurisdiction=None,
    period=None,
    entity_name=None,
    client_context={},
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("portfolios.analyse", {
  "topic": "string",
  "jurisdiction": null,
  "period": null,
  "entity_name": null,
  "client_context": {}
});
console.log(result);
```

Response

```
{
  "skill": "analyse_investment_portfolio",
  "output": {
    "analysis": "Opening holdings of GBP 1,250,000 closed at GBP 1,372,400 after net gains of GBP 96,800 and favourable FX movements of GBP 25,600.",
    "confidence": 0.82,
    "findings": [
      "Realised gains exceed the annual exempt amount of GBP 3,000."
    ],
    "summary": "Portfolio value rose 9.8% over the 2025-26 tax year."
  },
  "correlation_id": "<string>"
}
```

```
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
