{"uid":"cap_xySt4QGCtHm7WsLAHDnsG","slug":"vishwa-prediction-order-cancellation-c0208d20","name":"Vishwa Prediction Order Cancellation","description":"Vishwa is building agent-native banking infrastructure for autonomous capital, bringing pre-execution control to agent-driven payments and capital flows.","url":"https://api.vishwalab.com/v1/prediction/orders?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-0381r-j4nl6qBEc5pYvp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cancels a pending buy or sell prediction market order on Vishwa's agent-native banking infrastructure","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a boolean 'success' field indicating whether the cancellation succeeded, and a 'data' object containing details of the cancelled order.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:37:08.949Z","isFirstParty":false,"canonicalSlug":"vishwa-prediction-order-cancellation-c0208d20"}