# Lukka Prediction Markets Open Interest API

> Lukka Prediction Markets Open Interest API 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 open interest (USD) data for prediction market exchanges like Polymarket, aggregated by source and time interval.

## Facts

- Endpoint: GET https://api.predictionmarketdata.io/open-interest
- 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-open-interest-api-1e2c3b64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tYcIN5qX8cquiXxgKlVNW

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-open-interest-api-1e2c3b64
```

Example prompt: Can you pull Polymarket open interest data from Lukka for the past 7 days, bucketed into daily intervals (86400000ms), starting from 2026-05-31T00:00:00Z to 2026-06-07T00:00:00Z?

## When to prefer this

Use this endpoint when you need time-series open interest data specifically for prediction market exchanges (e.g. Polymarket), especially when you want to analyze trends, compare platforms, or monitor capital deployed in prediction markets over a defined time range.

## Known failure modes

- Missing required query parameters (from, to, interval) returns a 400 error
- Invalid ISO-8601 timestamp format causes a parse error
- Interval value not in milliseconds or malformed causes unexpected bucketing
- Date range too large may result in timeout or truncated response
- Payment not included or insufficient USDC results in 402 Payment Required

## How this service works

Time-series of prediction-market open interest by exchange (USD).

## Output

A JSON array of time-bucketed open interest records, each containing a timestamp, source exchange name and code, source ID, and total open interest in USD — plus a total record count and data type label.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "to": "2026-06-07T00:00:00Z",
   "from": "2026-05-31T00:00:00Z",
   "interval": "86400000"
  }
 }
}
```

## 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",
    "openInterestUsd": "297477595.47"
   }
  ],
  "count": 48,
  "dataType": "prediction-open-interest-summary"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lukka-prediction-markets-open-interest-api-1e2c3b64/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)
