ワンクリックで
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".