Skip to main content
GET
Get a user's portfolio

Authorizations

x-api-key
string
header
required

Your Stockly API key. Identifies your app; you never pass an app id.

Path Parameters

userId
string<uuid>
required

Response

The user's portfolio

value
number

Total current value in USD.

costBasis
number

Total USD given for the held stock.

change
string | null

Return vs cost basis, e.g. "+8.4%". Null if no cost basis yet.

holdings
object[]