Skip to main content
POST
Closed Positions

Authorizations

X-Api-Key
string
header
required

API key issued for programmatic access.

Body

application/json
page
object
required
filter
object[]

Filters to apply, combined with AND. Use a group for OR.

Minimum array length: 1

A single condition, or a group combining conditions with AND/OR.

orderBy
object[]

Sort keys in priority order; the first is the primary sort. Defaults to the table's configured ranking when omitted.

searchKey
string

Free-text search over: Event (embedding + full-text relevance).

Response

List of Closed Positions rows

avgBuyPrice
number<double>

Average buying price of the sold shares

eventId
integer<int32>

Parent event

exitPrice
number<double>

Average selling price

invested
number<double>

Realized cost basis of the sold shares.

pnl
number<double>

Realized profit and loss

positions
Positions · object[]

Per-position breakdown within the event, realized cost basis, sold shares, avg buy price, realized pnl and roi, summed across every matching wallet (so a position closed by N cohort users collapses to one entry). Serialized as a JSON array of objects.

roi
number<double>

Return on investment percentage

shares
number<double>

Total shares sold