GET /get-user-portfolio-history
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/manifold/get-user-portfolio-historyCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePortfolio metric series for one user and window.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
userId | query | str | required | User id whose portfolio history is read. example: IPTOzEqrpkWmEzh6hwvAyY9PqFb2 |
period | query | strdaily | weekly | monthly | allTime | required | Portfolio-history window. example: weekly |
Response
type: array
pagination: none
sample: {
"[0]": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/manifold/get-user-portfolio-history?userId=IPTOzEqrpkWmEzh6hwvAyY9PqFb2&period=weekly"