Skip to main content
POST
Enriched Activities

Authorizations

X-Api-Key
string
header
required

API key issued for programmatic access.

Body

application/json
page
object
required
activityIds
enum<integer>[]

Restrict to these activity types (1 = Buy, 2 = Sell). All are returned when omitted.

Minimum array length: 1
Available options:
1,
2
aggregationWindow
enum<integer>

Return rows aggregated into time buckets of this grain (1 = 1 hour, 2 = 6 hours, 3 = 12 hours, 4 = 1 day, 5 = 1 week, 6 = 1 month), grouped by bucket, activity and wallet. Omit for one row per event.

Available options:
1,
2,
3,
4,
5,
6
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: Market (embedding + full-text relevance).

Response

List of Enriched Activities rows

activity
integer<int32>

Type of prediction market activity

amount
number<double>

Share amount

avgBuyingPrice
number<double>

Average buying price at the time of this activity in USD.

eventId
integer<int32>

The event in whose market the activity occurred.

marketId
integer<int32>

The market in which the activity occurred.

positionId
integer<int32>

The position bought/sold in a market.

realizedPnl
number<double>

Realized profit and loss in USD.

realizedPnlPercentage
number<double>

Realized PnL as a percentage (materialized)

seqId
string<big-integer>

Sequence ID

seriesId
integer<int32>

Series this activity's event belongs to

tagIds
integer<int32>[]

Tags associated with this event

timestamp
string<date-time>

When the activity occurred

txHash
string

Blockchain transaction hash

usdAmount
number<double>

USD value of the shares bought/sold in the activity.

usdPrice
number<double>

Share price in USD

wallet
string

User wallet address who performed the activity