with one click
context-trade
Place and manage prediction market orders on Context Markets
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Place and manage prediction market orders on Context Markets
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Create, cancel, or manage multiple orders in a single batch
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
Find interesting prediction markets by volume, trend, liquidity, or topic
| name | context-trade |
| description | Place and manage prediction market orders on Context Markets |
Place, cancel, and manage orders on Context Markets prediction markets.
npx context-markets-mcp)ctx.account.setup() or context_account_setup before first tradectx.account.deposit() or mint test USDC on testnetprice × 10,000, size × 1,000,000. The SDK handles this automatically.import { ContextClient } from "context-markets";
const ctx = new ContextClient({
chain: "testnet", // "mainnet" | "testnet" (defaults to mainnet)
apiKey: "ctx_pk_...",
signer: { privateKey: "0x..." },
});
The SDK, MCP, and CLI all separate outcome selection from trade direction.
SDK — side is the trade direction, outcome is which side of the market:
ctx.orders.create({ marketId, outcome: "yes", side: "buy", priceCents: 45, size: 10 })
MCP — outcome selects YES/NO, side selects buy/sell:
context_place_order({ marketId, outcome: "yes", side: "buy", size: 10, price: 45 })
CLI — uses both params explicitly:
context orders create --market <id> --outcome yes --side buy --price 45 --size 10
outcome: "yes" | "no" — which outcome to tradeside: "buy" | "sell" — direction ("buy" by default in MCP)price: number — limit price in cents (1-99); omit for a market ordersize: number — number of contractsctx.account.setup() is chain-aware:
Must run before first trade. Check status with ctx.account.status() or context_account_setup.
Markets (8 — read-only, no auth):
context_list_markets · context_get_market · context_get_quotes · context_get_orderbook · context_simulate_trade · context_price_history · context_get_oracle · context_global_activity
Orders (7 — requires API key + private key):
context_place_order · context_cancel_order · context_cancel_replace_order · context_my_orders · context_bulk_create_orders · context_bulk_cancel_orders · context_bulk_orders
Portfolio (2 — requires API key + private key):
context_get_portfolio · context_get_balance
Account (6 — requires API key + private key):
context_generate_wallet · context_wallet_status · context_account_setup · context_deposit · context_withdraw · context_mint_test_usdc
Questions (2 — requires API key + private key):
context_create_market · context_agent_submit_market
context orders create Place a limit order
context orders market Place a market order
context orders cancel Cancel by nonce
context orders cancel-replace Atomic cancel + new order
context orders bulk-create Batch create
context orders bulk-cancel Batch cancel
context orders bulk Mixed batch (cancels + creates)
| Workflow | When to use |
|---|---|
| place-order | Buy or sell on a specific market |
| market-maker | Quote both sides with spread management |
| bulk-operations | Batch create, cancel, or rebalance orders |
| manage-positions | Cancel, replace, check portfolio and balances |
| diagnose-order | Troubleshoot orders not filling or getting rejected |