Talk with Archie
API reference › Analysis
Skills › Analysis

Analyse an Investment Portfolio

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
topicstringRequired
What to analyse in the portfolio, in plain language (up to 5,000 characters).
jurisdictionenum · default GB
Jurisdiction whose rules apply: one of AU, GB, CA, US or NZ.
AUGBCAUSNZ
periodstring
Period covered by the analysis, as a free-text label such as 2025-26.
entity_namestring
Name of the entity that holds the portfolio, such as a family company.
client_contextobject
Extra client facts as key-value pairs, such as currency or tax allowances.
Returns

Skill executed successfully

skillstringRequired
Example analyse_investment_portfolio
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.analysisstring · default
output.summarystring · default
output.findingsarray of strings
output.confidencenumber · default 0
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
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>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "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.