# Lukka Prediction Markets Total Volume

> Lukka Prediction Markets Total Volume is a paid API for AI agents from api.predictionmarketdata.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns time-bucketed total trading volume in USD for prediction market exchanges (e.g. Polymarket) over a specified time range.

## Facts

- Endpoint: GET https://api.predictionmarketdata.io/prediction-total-volume
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lukka-prediction-markets-total-volume-e2a6896e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pVXj6WjnuXiHEWlkT9NWP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lukka-prediction-markets-total-volume-e2a6896e
```

Example prompt: Pull the total prediction market trading volume from Lukka from January 1, 2025 to June 1, 2025 in daily buckets (86400000 ms intervals) so I can see how activity trended across exchanges like Polymarket.

## When to prefer this

Use this endpoint when you need aggregated historical trading volume for prediction market exchanges over a custom time range with configurable bucket granularity. Prefer this over individual contract-level data when you want exchange-wide or platform-wide volume trends.

## Known failure modes

- Missing required query params (from, to, interval) returns a 400 error
- Invalid ISO-8601 timestamps cause parsing errors
- Interval value not a valid millisecond bucket size may return empty or malformed data
- Date range too large may result in timeout or rate limiting
- Payment not completed (x402) returns 402 Payment Required

## How this service works

Time-bucketed total prediction-market volume across all exchanges.

## Output

A JSON array of time-bucketed volume records, each containing a UTC timestamp, source ID, exchange entity code (e.g. POLYMARK), exchange name (e.g. Polymarket), and total volume in USD for that bucket. Also includes a total count of records and a dataType identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to",
      "interval"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "UTC end timestamp in ISO-8601 format."
      },
      "from": {
       "type": "string",
       "description": "UTC start timestamp in ISO-8601 format."
      },
      "interval": {
       "type": "string",
       "description": "Bucket size in milliseconds."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "time": "2026-06-07T00:00:00Z",
    "sourceId": 4137,
    "entityCode": "POLYMARK",
    "entityName": "Polymarket",
    "totalVolumeUsd": "6034873863.04"
   }
  ],
  "count": 48,
  "dataType": "prediction-total-volume-summary"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lukka-prediction-markets-total-volume-e2a6896e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.predictionmarketdata.io](https://www.zero.xyz/host/api.predictionmarketdata.io/llms.txt)
