get wallet profit & loss
get wallet profit & loss
Multipliers
Multipliers
You will get
You will get
- Wallet holdings with coin details, quantities, current prices, and total cost basis.
- Profit and loss breakdowns for each holding, including realized, unrealized, all-time, 24-hour, and last-trade values.
- Average buy and sell prices, plus profit percentages, so you can understand how each position is performing.
- A summary object with total value, total cost, profit, and profit percentage for the filtered result set.
Required
Required
- address plus connectionId/blockchain
- Raw wallet requests require transactions to be synced first with PATCH /wallet/transactions
Optional
Optional
- coinId: Filter the result and summary by coin ID
- page & limit: Control pagination
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.
Query Parameters
Page number to retrieve (1-based indexing)
1
Number of P/L items to return per page.
1000
Wallet address for raw wallet PnL data.
"0x1234567890abcdef1234567890abcdef12345678"
Single wallet connection identifier from GET /wallet/blockchains. Required with address.
"ethereum"
Blockchain identifier from GET /wallet/blockchains. Used when connectionId is not provided.
"ethereum"
Filter PnL data by coin ID.
"bitcoin"