---
title: "Portfolio"
method: GET
path: "/api/portfolio"
tags: ["Portfolio"]
---

# Portfolio

`GET /api/portfolio`

## Request

- Base URL: `https://api.xfinlab.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xfinlab.com/api/portfolio`
- Auth: none declared

Dashboard Portfolio Allocation panel. Was previously always the
same 3 hardcoded stocks (NVDA/AAPL/MSFT) with fixed fake scores
for every user, regardless of what they actually track. Now
allocates across the user's real watchlist (or a small default
basket if logged out / no watchlist yet), weighted by each
ticker's real market_score computed from live data.

## Query parameters

- `token` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xfinlab/apis/xfinlab-api.md) · [All operations](https://skmtc.dev/xfinlab/apis/xfinlab-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfinlab/apis/xfinlab-api/revisions/205f85614bc6?raw)
