v1

latestOpenAPI 3.0.12026-07-2683220192.3 KB
Portfolio

Get Activities

Get activities for a user including trades, position resolutions, and account balance changes

get/v1/portfolio/activities

Query parameters

limitinteger

Maximum number of activities to return per page. Use with cursor for pagination. Default: 100. Example: 50

cursorstring

Pagination cursor from a previous response's nextCursor field. Use to fetch the next page of results. Omit for the first request

marketSlugstring

Filter activities by a specific market slug. Returns only activities (trades, resolutions) related to that market. Example: will-team-a-win

typesstring[]

Filter by activity types. When specified, only returns activities of the selected types. TRADE (order executions), POSITION_RESOLUTION (market settlements), ACCOUNT_DEPOSIT/WITHDRAWAL (fund transfers)

sortOrder'SORT_ORDER_DESCENDING' | 'SORT_ORDER_ASCENDING'

Sort order for activities by timestamp. DESCENDING returns newest first (default), ASCENDING returns oldest first

Response

List of activities

nextCursorstring

Pagination cursor for next page

eofboolean

True if this is the last page

Example response

{
  "activities": [
    {
      "positionResolution": {
        "beforePosition": {
          "cost": {
            "value": "123.45"
          },
          "realized": {
            "value": "123.45"
          },
          "cashValue": {
            "value": "123.45"
          }
        },
        "afterPosition": {
          "cost": {
            "value": "123.45"
          },
          "realized": {
            "value": "123.45"
          },
          "cashValue": {
            "value": "123.45"
          }
        }
      },
      "accountBalanceChange": {
        "amount": {
          "value": "123.45"
        }
      }
    }
  ]
}