> ## Documentation Index
> Fetch the complete documentation index at: https://docs.worm.wtf/llms.txt
> Use this file to discover all available pages before exploring further.

# List market margin activity

> Retrieve public margin activity feed rows for a single market.

## Path Parameters

**condition\_id** `string` *required*

The market condition id.

## Query Parameters

**activity\_type** `string`

Optional filter (case-insensitive). One of `opened`, `increased`, `decreased`, `closed`, `liquidated`.

**limit** `integer` (default: 50)

Number of rows to return. Range: `1-100`.

**cursor** `string`

Cursor token from a previous response page.

## Response

**data** `array`

Margin activity feed rows for the market.

**Data fields**

**activity\_type** `string`

Activity kind: `opened`, `increased`, `decreased`, `closed`, or `liquidated`.

**user** `object`

Actor profile summary (`username`, `profile_image`, `twitter_username`).

**market** `object | null`

Market summary (`title`, `condition_id`, `logo`, `last_trade_price`).

**shares** `string | null`

Position shares associated with the activity.

**price** `string | null`

Activity execution/mark price.

**realized\_pnl** `string | null`

Realized profit/loss for close events.

**leverage** `string | null`

Leverage value on the activity row.

**is\_yes** `boolean | null`

Outcome side where relevant.

**created** `integer`

Activity timestamp in unix seconds.

**meta** `object | null`

Pagination: `limit` and `next_cursor` (keyset `before_id`). See [Pagination](https://docs.worm.wtf/api-reference/pagination.md). On error responses, `meta` is `null`.

**error** `object | null`

`null` on success. Error object on failed requests.

```json 200 theme={null}
{
  "data": [
    {
      "activity_type": "opened",
      "user": {
        "username": "trader_42",
        "profile_image": "https://cdn.worm.wtf/u/42.png",
        "twitter_username": "trader42"
      },
      "market": {
        "title": "Will the Atlanta Hawks beat the New York Knicks in the NBA game on April 28, 2026?",
        "condition_id": "7n9G9WfQ2V7d6hM3XK8pQ4LwR2eY6aT1uJ5cB8mN3qPz",
        "logo": "https://cdn.worm.wtf/m/123.png",
        "last_trade_price": "0.68"
      },
      "shares": "125.000000000000000000",
      "price": "0.670000000000000000",
      "realized_pnl": null,
      "leverage": "2.000000000000000000",
      "is_yes": true,
      "created": 1714300800
    }
  ],
  "meta": {
    "limit": 50,
    "next_cursor": null
  },
  "error": null
}
```

```json 400 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -11,
    "slug": "invalid_request_params",
    "message": "Validation Error",
    "details": []
  }
}
```

```json 404 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -15,
    "slug": "not_found",
    "message": "Not found.",
    "details": []
  }
}
```

```json 429 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -17,
    "slug": "throttled",
    "message": "Request was throttled.",
    "details": []
  }
}
```

```json 500 theme={null}
{
  "data": null,
  "meta": null,
  "error": {
    "code": -3,
    "slug": "internal_error",
    "message": "An internal error occurred.",
    "details": []
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.