# Polymarket wallet trade history extractor

**Use case:** 

Extract BUY and SELL history for a public Polymarket proxy wallet with market IDs, prices, sizes, profiles, and transaction hashes.

## Input

```json
{
  "wallets": [
    "0x56687bf447db6ffa42ffe2204a05edaa20f55839"
  ],
  "modes": [
    "trades"
  ],
  "maxItemsPerWallet": 100,
  "startDate": "2026-01-01",
  "minPositionSize": 1,
  "maxConcurrency": 3
}
```

## Output

```json
{
  "recordType": {
    "label": "Type",
    "format": "text"
  },
  "wallet": {
    "label": "Wallet",
    "format": "text"
  },
  "title": {
    "label": "Market",
    "format": "text"
  },
  "outcome": {
    "label": "Outcome",
    "format": "text"
  },
  "side": {
    "label": "Side",
    "format": "text"
  },
  "activityType": {
    "label": "Activity",
    "format": "text"
  },
  "size": {
    "label": "Size",
    "format": "number"
  },
  "averagePrice": {
    "label": "Avg price",
    "format": "number"
  },
  "currentPrice": {
    "label": "Current price",
    "format": "number"
  },
  "tradePrice": {
    "label": "Trade price",
    "format": "number"
  },
  "currentValue": {
    "label": "Current value",
    "format": "number"
  },
  "portfolioValue": {
    "label": "Portfolio value",
    "format": "number"
  },
  "cashPnl": {
    "label": "Cash PnL",
    "format": "number"
  },
  "percentPnl": {
    "label": "PnL %",
    "format": "number"
  },
  "realizedPnl": {
    "label": "Realized PnL",
    "format": "number"
  },
  "timestampIso": {
    "label": "Timestamp",
    "format": "date"
  },
  "conditionId": {
    "label": "Condition ID",
    "format": "text"
  },
  "assetId": {
    "label": "Asset ID",
    "format": "text"
  },
  "transactionHash": {
    "label": "Transaction hash",
    "format": "text"
  },
  "marketSlug": {
    "label": "Market slug",
    "format": "text"
  },
  "traderName": {
    "label": "Trader",
    "format": "text"
  },
  "sourceUrl": {
    "label": "Source",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "date"
  }
}
```

## About this Actor

This example demonstrates how to use [Polymarket Wallet Portfolio & Trade History Scraper](https://apify.com/automation-lab/polymarket-wallet-portfolio-trade-history-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/polymarket-wallet-portfolio-trade-history-scraper) to learn more, explore other use cases, and run it yourself.