10 credits per request
You will get
You will get
- Total portfolio value at different time points
- Performance metrics for various time ranges
- Historical Profit/Loss (PnL) data
Required
Required
This endpoint is only available for users with a Degen plan subscription.
- shareToken: Get this from your CoinStats portfolio page by clicking “Share” and copying the token from the share URL
Optional
Optional
- type: Specify the time range for the chart data (e.g., “24h”, “1w”, “1m”, “1y”)
- passcode: Passcode for accessing protected portfolio data (can be passed in header or query parameter)
Authorizations
API key needed to access the endpoints. Example: 'demo-api-key'
Headers
Passcode for accessing protected portfolio data
Example:
"123456"
Query Parameters
One of time periods.
Available options:
24h
, 1w
, 1m
, 3m
, 6m
, 1y
, all
Example:
"24h"
Passcode for accessing protected portfolio data
Example:
"123456"
Response
Portfolio Chart
Array of historical price data points. Each data point is an array containing:
- TIMESTAMP - Unix timestamp in seconds
- USD - Price in USD
- BTC - Price in Bitcoin
- ETH - Price in Ethereum
Example:
[
[
1755864000000,
297711.24614580005,
2.65026183,
69.53175117
],
[
1755864000000,
297711.24614580005,
2.65026183,
69.53175117
]
]