一键导入
context-trade-diagnose-order
Troubleshoot orders that aren't filling, got rejected, or show unexpected behavior
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Troubleshoot orders that aren't filling, got rejected, or show unexpected behavior
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create, cancel, or manage multiple orders in a single batch
Place and manage prediction market orders on Context Markets
Build an embeddable single-market prediction widget with buy/sell buttons
Build a portfolio dashboard showing positions, P&L, balances, and claimable winnings
Build prediction market frontends with the Context React SDK
Scaffold a full prediction market trading UI with market list, orders, and portfolio
| name | context-trade-diagnose-order |
| description | Troubleshoot orders that aren't filling, got rejected, or show unexpected behavior |
Troubleshoot orders that aren't filling, were rejected or voided, or are behaving unexpectedly.
An order isn't working as expected — not filling, got voided, shows an error, or produced unexpected results.
Read-only diagnosis uses MCP read tools (no auth). Checking your own orders requires API key + private key.
context_get_market — check that status is "active". If "pending", "resolved", or "closed", the market is not accepting new trades.context_get_orderbook — for a buy order, your bid must be at or above the lowest ask to fill immediately. For a sell, your ask must be at or below the highest bid.ctx.orders.get(orderId) and check status and voidReason.| Void Reason | Cause | Fix |
|---|---|---|
UNFILLED_MARKET_ORDER | Market order could not fill immediately | Reduce size, widen the cap price, or use a limit order |
UNDER_COLLATERALIZED | Not enough USDC or inventory to support the order | Check context_get_balance, then deposit or adjust inventory mode |
MISSING_OPERATOR_APPROVAL | Trading approvals are missing | Run context_account_setup |
BELOW_MIN_FILL_SIZE | Executable remainder is below the minimum fill size | Increase size or use a limit order |
INVALID_SIGNATURE | Private key doesn't match account | Verify CONTEXT_PRIVATE_KEY is correct |
MARKET_RESOLVED | Market ended or resolved | Cannot trade this market |
ADMIN_VOID | Order was voided administratively by the system | Inspect account and market state, then retry if appropriate |
context_get_orderbook — is there sufficient liquidity at reasonable prices?priceCents that caps your worst-case fill.voided ≠ cancelled. Voided means the system rejected it (bad params, no balance). Cancelled means you cancelled it intentionally.MAKER_ONLY constraint causes reverts. If you see InvalidRoleConstraint errors, someone set makerRoleConstraint: 1. Never use this value.After resolving the issue, place a new order and confirm it appears in context_my_orders with status "open".