> ## 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.

# Kalshi Get Trades

Get recent trades for Kalshi markets with optional filtering by ticker and time range. Returns trade details including price, size, and taker side with cursor-based pagination. Ideal for: trade flow analysis, market activity monitoring, volume tracking, execution analytics.

![Kalshi Get Trades logo](https://cdn.b3.fun/kalshi-logo.png)
Catalog action Utility

Get recent trades for Kalshi markets with optional filtering by ticker and time range. Returns trade details including price, size, and taker side with cursor-based pagination. Ideal for: trade flow analysis, market activity monitoring, volume tracking, execution analytics.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `kalshi-get-trades` |
| Category | Utility |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `kalshi`, `prediction-market`, `market-data`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ticker` | `string` | No | Filter trades by market ticker \(e.g., 'KXBTC-25MAR14-B95500'\). Omit to get trades across all markets. |
| `limit` | `number` | No | Maximum number of trades to return \(default: 100, max: 1000\) |
| `cursor` | `string` | No | Pagination cursor from a previous response to fetch the next page |
| `minTs` | `number` | No | Minimum timestamp \(Unix seconds\) to filter trades |
| `maxTs` | `number` | No | Maximum timestamp \(Unix seconds\) to filter trades |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `trades` | `array` | Yes | Array of recent trades |
| `cursor` | `string` | No | Cursor for the next page of results \(empty if no more pages\) |
| `count` | `number` | No | Number of trades returned |

## Examples

**Workflow node**

```json
{
  "type": "kalshi-get-trades",
  "payload": {
    "ticker": "example-ticker",
    "limit": 100,
    "cursor": "example-cursor",
    "minTs": 1,
    "maxTs": 1
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/kalshi-get-trades/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "ticker": "example-ticker",
    "limit": 100,
    "cursor": "example-cursor",
    "minTs": 1,
    "maxTs": 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.