Skip to main content
GET
cURL
25 credits per request

  • Holdings with the same PnL fields as portfolio coins
  • totalCost per coin
  • Summary totals for the filtered result set
  • portfolioId: API-connected exchange portfolio ID
  • coinId: Filter the result and summary by coin ID
  • page & limit: Control pagination

Authorizations

X-API-KEY
string
header
required

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

Page number to retrieve (1-based indexing)

Example:

1

limit
number

Number of items to return per page

Example:

20

portfolioId
string
required

Portfolio ID received from POST /portfolio/exchange or POST /exchange/balance.

Example:

"618f0bb0f2cf07dce25bc5007750bf1646825509bb63519bd491ab6a56daa419"

coinId
string

Filter P/L data by coin ID.

Example:

"bitcoin"

Response

Get exchange PnL data

result
object[]
required

Portfolio holdings with prices, PnL fields, averages, and totalCost

summary
object
required

Totals calculated from the filtered result set