# Kalshi trades backtesting dataset workflow

**Use case:** 

Create a bounded Kalshi execution dataset for backtests and ETL using market, time-window, pagination, and resumable cursor controls.

## Input

```json
{
  "ticker": "KXNBAGAME-26MAY23NYKCLE-NYK",
  "minCreatedTime": "2026-05-20T00:00:00Z",
  "maxCreatedTime": "2026-05-24T00:00:00Z",
  "maxItems": 10000,
  "pageSize": 1000
}
```

## Output

```json
{
  "tradeId": {
    "label": "Trade ID",
    "format": "string"
  },
  "ticker": {
    "label": "Market ticker",
    "format": "string"
  },
  "createdTime": {
    "label": "Executed at",
    "format": "string"
  },
  "count": {
    "label": "Contracts",
    "format": "number"
  },
  "yesPrice": {
    "label": "Yes price",
    "format": "number"
  },
  "noPrice": {
    "label": "No price",
    "format": "number"
  },
  "takerSide": {
    "label": "Taker side",
    "format": "string"
  },
  "takerOutcomeSide": {
    "label": "Taker outcome",
    "format": "string"
  },
  "takerBookSide": {
    "label": "Book side",
    "format": "string"
  },
  "isBlockTrade": {
    "label": "Block trade",
    "format": "boolean"
  },
  "sourceType": {
    "label": "Source type",
    "format": "string"
  },
  "sourceEndpoint": {
    "label": "Source endpoint",
    "format": "string"
  },
  "pageNumber": {
    "label": "API page",
    "format": "integer"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Kalshi Historical Trades Scraper](https://apify.com/automation-lab/kalshi-historical-trades-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/kalshi-historical-trades-scraper) to learn more, explore other use cases, and run it yourself.