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

# Polymarket Get Activity

Get prediction-market activity (trades and redemptions) for the authenticated user's Polymarket deposit wallet from the public Polymarket Data API. Supports time-range and limit. Ideal for: unified wallet activity feeds, trade and redemption history.

![Polymarket Get Activity logo](https://cdn.b3.fun/b3os-icons/polymarket-icon.png)
Catalog action Utility wallet

Get prediction-market activity (trades and redemptions) for the authenticated user's Polymarket deposit wallet from the public Polymarket Data API. Supports time-range and limit. Ideal for: unified wallet activity feeds, trade and redemption history.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `polymarket-get-activity` |
| Category | Utility |
| Connector | `wallet` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `polymarket`, `activity`, `trades`, `history`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `startTime` | `number` | No | Only return activity at/after this Unix timestamp in milliseconds |
| `endTime` | `number` | No | Only return activity at/before this Unix timestamp in milliseconds |
| `limit` | `number` | No | Maximum number of activity entries to return \(1-500, default 100\) |
| `types` | `string` | No | Comma-separated activity types to fetch \(default 'TRADE,REDEEM'\) |
| `offset` | `number` | No | Number of activity entries to skip for pagination \(default: 0\) |
| `sortDir` | `string` | No | Sort direction by timestamp \(default 'DESC' — newest first\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `activity` | `array` | Yes | Normalized Polymarket activity entries \(trades and redemptions\) |
| `count` | `number` | Yes | Number of activity entries returned |

## Examples

**Workflow node**

```json
{
  "type": "polymarket-get-activity",
  "payload": {
    "startTime": 1,
    "endTime": 1,
    "limit": 1,
    "types": "example-types",
    "offset": 1
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/polymarket-get-activity/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "startTime": 1,
    "endTime": 1,
    "limit": 1,
    "types": "example-types",
    "offset": 1
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.