Skip to main content
POST
Closed Positions

Body

application/json
page
object
required
userId
object
required

User wallet address

filter
(Numeric · object | ID · object | Group · object)[]

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

Minimum array length: 1

A single field condition. in/notIn take an array of values; matches/notMatches take one search term.

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

event
Event · object

Resolved Event row.

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