Get Portfolio Transactions
Get a detailed history of all transactions in your portfolio
You will get
You will get
- Complete list of buy/sell operations
- Transaction dates and amounts
- Price information at time of transaction
- Supports pagination for viewing large transaction sets
Required
Required
- shareToken OR portfolioId: Provide one of these to identify the portfolio.
- shareToken: Get this from your CoinStats portfolio page by clicking “Share”
- portfolioId: Use a portfolio connected via POST /portfolio/wallet or POST /portfolio/exchange
- If neither is provided, returns transactions from all API-connected portfolios
- currency: Specify the currency for price values
Optional
Optional
- page & limit: Control the number of transactions per page
- from & to: Filter transactions by date range
- passcode: Passcode for accessing protected portfolio data (can be passed in header or query parameter)
Authorizations
API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.
Headers
Passcode for accessing protected portfolio data
"123456"
Query Parameters
Page number to retrieve (1-based indexing)
1
Number of items to return per page
20
The fiat currency to return values in
"USD"
Coin ID to filter transactions for a specific coin
"bitcoin"
Portfolio ID for accessing a specific API-connected portfolio. Required if shareToken is not provided.
"abc123def456"