10 credits per request
You will get
You will get
- Total value of portfolio
- Defi value of portfolio
- Total cost of portfolio
- Unrealized profit/loss
- Realized profit/loss
- All time profit/loss
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
- currency: Specify the currency for price values, default is USD
- 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
Currency for price values. Default is USD.
Example:
"USD"
Passcode for accessing protected portfolio data
Example:
"123456"
Response
Portfolio profit/loss
Unrealized profit/loss percentage
Example:
12.5
Realized profit/loss percentage
Example:
5
All Time profit/loss percentage
Example:
17.5
Total value of portfolio
Example:
12500.75
DeFi value of portfolio
Example:
2500.25
Total cost of portfolio
Example:
10000.5
Unrealized profit/loss
Example:
1250.75
Realized profit/loss
Example:
500.25
All Time profit/loss
Example:
1751