# Vishwa Prediction Positions Query

> Vishwa Prediction Positions Query is a paid API for AI agents from api.vishwalab.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Retrieves paginated prediction market positions, filterable by market ID, owner public key, position side, and market public key.

## Facts

- Endpoint: GET https://api.vishwalab.com/v1/prediction/positions?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vishwa-prediction-positions-query-1c3829b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QcZqWmIemL7NMfV--ZXT4

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 vishwa-prediction-positions-query-1c3829b8
```

Example prompt: Show me all the YES positions held by wallet pubkey 7xKj3...Fq2 in market ABC123 on Vishwa — pull the first 50 results starting from offset 0.

## When to prefer this

Use this endpoint when you need to look up existing prediction market positions on Vishwa's agent-native infrastructure, particularly when filtering by owner wallet, market, or position side (YES/NO). Prefer this over generic blockchain explorers when you need structured, paginated position data specific to Vishwa prediction markets.

## Known failure modes

- Invalid or unknown marketId returns empty data set
- Invalid ownerPubkey format may return error or empty results
- Pagination offsets out of range may return empty data
- Missing required filters may return all positions (large payload)
- Service unavailable returns non-success response

## How this service works

Vishwa is building agent-native banking infrastructure for autonomous capital, bringing pre-execution control to agent-driven payments and capital flows.

## Output

Returns a JSON object with a success boolean and a data object containing the matching prediction market positions, filtered according to the provided parameters such as market ID, owner public key, and position side.

## Example request

```json
{
 "end": 10,
 "isYes": "yes",
 "start": 0
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "integer",
   "description": "Pagination end offset"
  },
  "isYes": {
   "enum": [
    "true",
    "false"
   ],
   "type": "string",
   "description": "Filter by position side"
  },
  "start": {
   "type": "integer",
   "description": "Pagination start offset"
  },
  "marketId": {
   "type": "string",
   "description": "Filter by market ID"
  },
  "ownerPubkey": {
   "type": "string",
   "description": "Filter by owner public key"
  },
  "marketPubkey": {
   "type": "string",
   "description": "Filter by market public key"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vishwa-prediction-positions-query-1c3829b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vishwalab.com](https://www.zero.xyz/host/api.vishwalab.com/llms.txt)
