Skip to main content

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
Your API key gives access to all of your own portfolios — no share token needed. Pass a portfolioId from GET /portfolio/list to target one portfolio, or omit it to get aggregated coins from all your portfolios. A share token is only needed to read someone else’s shared portfolio.

Get Portfolio Coins

Retrieve detailed information about all coins in your portfolio:
8 credits per request

Headers

Query Parameters

Shared Portfolio (Share Token)

To read a portfolio someone shared with you, pass its share token instead of portfolioId. Add the passcode header if the shared portfolio is protected:

Example Response

Response Fields

  • count: Amount of the coin you hold
  • coin.rank: Market cap rank
  • coin.identifier: Unique coin identifier
  • coin.symbol: Coin ticker symbol
  • coin.name: Full coin name
  • coin.icon: Coin logo URL
  • coin.priceChange24h: 24-hour price change percentage
  • coin.priceChange1h: 1-hour price change percentage
  • coin.priceChange7d: 7-day price change percentage
  • coin.priceChange1m: 1-month price change percentage
  • coin.volume: 24-hour trading volume
Current prices in multiple currencies:
  • price.USD: Price in US Dollars
  • price.BTC: Price in Bitcoin
  • price.ETH: Price in Ethereum
  • profit.allTime: Total profit/loss since first purchase
  • profit.hour24: Profit/loss in the last 24 hours
  • profit.lastTrade: Profit/loss from the most recent trade
  • profit.unrealized: Profit/loss on holdings not yet sold
  • profit.realized: Profit/loss from completed sales
  • averageBuy: Average price paid when buying
  • averageSell: Average price received when selling
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

Solution: Check that your API key is correct and active
Solution: Use a portfolioId returned by GET /portfolio/list. If you are reading a shared portfolio, verify the share token is correct
Solution: Include the correct passcode for the shared portfolio
Share tokens are optional. Use them only to read a portfolio someone shared with you — see the Share Token Authentication guide.

Portfolio Value

Get total portfolio value and overall PnL metrics

Portfolio Chart

View historical portfolio performance data

Portfolio Transactions

Access complete transaction history

Portfolio DeFi

View staking and DeFi positions