Access Your Portfolio Coins
Get comprehensive information about all cryptocurrency holdings in your CoinStats portfolio, including current balances, profit/loss calculations, performance metrics, and risk assessment scores.Key Features
- Complete Holdings Overview: View all coins with current balances and USD values
- Profit/Loss Tracking: Detailed PnL data including realized, unrealized, and 24-hour changes
- Performance Metrics: Average buy/sell prices and profit percentages
- Risk Assessment: Optional risk scores including liquidity, volatility, and market cap metrics
- Multi-Currency Values: Get values in USD, BTC, and ETH
This endpoint is only available for users with a Degen plan subscription. You’ll need a share token to access portfolio data. Learn more about Share Token Authentication.
Get Portfolio Coins
Retrieve detailed information about all coins in your portfolio:8 credits per request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
shareToken | string | Yes | Your portfolio share token (how to get it) |
page | number | No | Page number for pagination (default: 1) |
limit | number | No | Number of results per page |
includeRiskScore | boolean | No | Set to true to include risk metrics (default: false) |
passcode | string | No | Passcode if your portfolio is protected |
Using Headers (Recommended)
For better security, pass the share token and passcode in headers:Example Response
Response Fields
Coin Information
Coin Information
count: Amount of the coin you holdcoin.rank: Market cap rankcoin.identifier: Unique coin identifiercoin.symbol: Coin ticker symbolcoin.name: Full coin namecoin.icon: Coin logo URLcoin.priceChange24h: 24-hour price change percentagecoin.priceChange1h: 1-hour price change percentagecoin.priceChange7d: 7-day price change percentagecoin.volume: 24-hour trading volume
Price Data
Price Data
Current prices in multiple currencies:
price.USD: Price in US Dollarsprice.BTC: Price in Bitcoinprice.ETH: Price in Ethereum
Profit/Loss Metrics
Profit/Loss Metrics
profit.allTime: Total profit/loss since first purchaseprofit.hour24: Profit/loss in the last 24 hoursprofit.lastTrade: Profit/loss from the most recent tradeprofit.unrealized: Profit/loss on holdings not yet soldprofit.realized: Profit/loss from completed sales
Average Prices
Average Prices
averageBuy: Average price paid when buyingaverageSell: Average price received when selling
Risk Scores (Optional)
Risk Scores (Optional)
Only included when
includeRiskScore=true:liquidityScore: Market liquidity metric (0-100)volatilityScore: Price volatility metric (0-100)marketCapScore: Market capitalization score (0-100)riskScore: Overall risk assessment (0-100)avgChange: Average price change percentage
Use Cases
Portfolio Analysis
Analyze your complete crypto holdings with detailed profit/loss data
Performance Tracking
Monitor individual coin performance and identify top performers
Risk Management
Use risk scores to assess portfolio volatility and liquidity
Tax Reporting
Export realized and unrealized gains for tax calculations
Pagination
For portfolios with many coins, use pagination to manage results:Error Handling
Missing Share Token (400)
Missing Share Token (400)
Unauthorized (401)
Unauthorized (401)
Subscription Required (403)
Subscription Required (403)
Portfolio Not Found (404)
Portfolio Not Found (404)
Passcode Required (409)
Passcode Required (409)