GET /get-user-portfolio
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/manifold/get-user-portfolioCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeLive portfolio metrics for one user.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
userId | query | str | required | User id whose live portfolio is read. example: IPTOzEqrpkWmEzh6hwvAyY9PqFb2 |
Response
type: object
pagination: none
sample: {
"userId": "str",
"loanTotal": "float",
"investmentValue": "float",
"cashInvestmentValue": "int",
"balance": "float",
"cashBalance": "int",
"spiceBalance": "float",
"totalDeposits": "float",
"totalCashDeposits": "float",
"dailyProfit": "float",
"timestamp": "int"
}
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?userId=IPTOzEqrpkWmEzh6hwvAyY9PqFb2"