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.
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
json{ "type": "kalshi-get-trades", "payload": { "ticker": "example-ticker", "limit": 100, "cursor": "example-cursor", "minTs": 1, "maxTs": 1 }, "children": []}
bashcurl -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 }}'
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.
