GET
/
portfolio
/
chart
cURL
curl --request GET \
  --url https://openapiv1.coinstats.app/portfolio/chart \
  --header 'X-API-KEY: <api-key>'
{
  "result": [
    [
      "<any>"
    ]
  ]
}
10 credits per request
Get historical performance data to visualize your portfolio’s growth over time:
  • Total portfolio value at different time points
  • Performance metrics for various time ranges
  • Historical Profit/Loss (PnL) data
Required:
  • shareToken: Get this from your CoinStats portfolio page by clicking “Share” and copying the token from the share URL
Optional:
  • type: Specify the time range for the chart data (e.g., “24h”, “1w”, “1m”, “1y”)
  • passcode: Optional passcode for accessing protected portfolio data
Note: This endpoint is only available for users with a Degen plan subscription.

Authorizations

X-API-KEY
string
header
required

API key needed to access the endpoints. Example: 'demo-api-key'

Query Parameters

shareToken
string
required

<b>To access your Share Token</b> Visit <a target='_blank' href='https://coinstats.app/portfolio'>CoinStats Portfolio</a> and make sure you are signed in to your account. In the top-right corner of the page, click on the Share button. This will bring up sharing preferences for your portfolio. Generate a Share Link. In the generated URL, the segment following <code>/p/</code> (e.g., <code>XXX</code>) is your share token. Copy only that token (without additional slashes or characters). Use the Token in the API

type
string
required

One of 24h, 1w, 1m, 3m, 6m, 1y, all

passcode
string

Optional passcode for accessing protected portfolio data

Example:

"123456"

Response

200
application/json

Portfolio Chart

The response is of type object.