# Vishwa Prediction Order Cancellation

> Vishwa Prediction Order Cancellation 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).

Cancels a pending buy or sell prediction market order on Vishwa's agent-native banking infrastructure

## Facts

- Endpoint: POST https://api.vishwalab.com/v1/prediction/orders?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-order-cancellation-c0208d20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xySt4QGCtHm7WsLAHDnsG

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-order-cancellation-c0208d20 -d '<json body>'
```

Example prompt: Cancel my pending buy order on prediction market MKTID-4892 for 10 contracts on the YES side — use my Solana wallet 7xKp...QmNr as the owner and payer pubkey.

## When to prefer this

Use this endpoint when an AI agent needs to cancel or revoke a previously placed prediction market order (buy or sell) before it executes, particularly when operating autonomously on Vishwa's agent-native banking infrastructure with pre-execution control over Solana-based capital flows.

## Known failure modes

- Order not found or already executed — returns success: false
- Missing required isBuy field — validation error
- Invalid or missing positionPubkey for sell order cancellation — error response
- Invalid Solana public key format — rejection
- Order already cancelled — idempotency conflict
- Insufficient authorization — owner pubkey mismatch

## 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 boolean 'success' field indicating whether the cancellation succeeded, and a 'data' object containing details of the cancelled order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "isBuy"
 ],
 "properties": {
  "isBuy": {
   "type": "boolean",
   "description": "true for buy order, false for sell order"
  },
  "isYes": {
   "type": "boolean",
   "description": "true for YES side, false for NO side"
  },
  "marketId": {
   "type": "string",
   "description": "Market ID (required for buy orders)"
  },
  "contracts": {
   "type": "number",
   "description": "Number of contracts to trade"
  },
  "orderType": {
   "enum": [
    "market",
    "limit"
   ],
   "type": "string",
   "description": "Order type"
  },
  "depositMint": {
   "type": "string",
   "description": "Deposit mint address"
  },
  "ownerPubkey": {
   "type": "string",
   "description": "Owner's Solana public key"
  },
  "payerPubkey": {
   "type": "string",
   "description": "Payer public key"
  },
  "depositAmount": {
   "type": "number",
   "description": "Deposit amount"
  },
  "maxBuyPriceUsd": {
   "type": "number",
   "description": "Max buy price in micro USD"
  },
  "positionPubkey": {
   "type": "string",
   "description": "Position pubkey (required for sell orders)"
  },
  "minSellPriceUsd": {
   "type": "number",
   "description": "Min sell price in micro USD"
  }
 }
}
```

## 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-order-cancellation-c0208d20/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)
