Skip to main content

Changelog

Recent updates and improvements to Context.
Apr 2026
Holdings V2 and Settlement V2 migration
  • Contract migration: Upgraded to Settlement V2 and Holdings V2 on both mainnet and testnet. New contracts bring budget-native buy orders, explicit order kinds (BUY, SELL_INVENTORY, SELL_NO_INVENTORY), and a single unified SignedOrder type replacing the old SignedOrder + MarketOrderIntent split. Users are migrated automatically through the app. See the contract migration guide for developer integration details.
  • SDK 0.7.0 — migration module: New ctx.migration module handles the full V1 → V2 migration flow: getStatus(), start(), migrateFunds(), signSponsoredMigrateFunds(), restorePendingOrders(), dismissOrders(), and signAddressAuthorization(). Supports sponsored (gasless) fund migration when available.
  • New contract addresses: Settlement V2 mainnet 0x00000000008c286A2aaa99c6Be3b3D405A929500, Holdings V2 mainnet 0x0000000000CcA5bC44912C63d63e1673FeE923f6. Legacy contracts remain operational for migration but are deprecated. See testnet addresses for testnet deployments.
  • Settlement V2 order changes: Buy orders are now budget-native (maxCollateralIn + minSharesOut) instead of price/size. New timeInForce parameter (GTC, IOC). Consumption accounting is per-order-kind. inventoryModeConstraint replaced by orderKind.
Mar 15, 2026
Chain-aware account operations and granular approvals
  • Chain-aware dispatch (SDK 0.6.0): setup() and deposit() now automatically use gasless relay on testnet and on-chain transactions on mainnet. No more manual gaslessSetup()/gaslessDeposit() calls needed — the SDK handles it based on your chain setting.
  • Granular approval methods: New approveUsdc() and approveOperator() methods let you call each approval independently. onchainSetup() and onchainDeposit() let you force on-chain transactions regardless of chain.
  • New AccountStatus type: status() now returns richer data — usdcBalance, needsUsdcApproval, needsOperatorApproval, and isReady (true when all approvals are in place). Replaces the ambiguous needsApprovals and needsGaslessSetup fields.
  • React SDK 0.2.0: New useApproveUsdc() and useApproveOperator() hooks. useAccountSetup and useDeposit simplified — they now call the chain-aware SDK methods directly.
  • Ecosystem packages: context-markets-mcp 0.2.0, context-markets-cli 0.2.0, and context-markets-react 0.2.0 all updated for the new account types.
Mar 12, 2026
Multi-chain support — mainnet and testnet
  • Multi-chain support (SDK 0.5.0): All ecosystem packages now support chain selection between Base mainnet and Base Sepolia testnet. Pass chain: "testnet" to the SDK client, set CONTEXT_CHAIN=testnet for the MCP server, use --chain testnet with the CLI, or add a chain prop to the React provider. Defaults to mainnet.
  • Ecosystem packages v0.1.1: context-markets-mcp, context-markets-cli, and context-markets-react all bumped to 0.1.1 with multi-chain support.
Mar 12, 2026
Ecosystem package rename and Claude Code plugin
  • Package rename: All ecosystem packages have been renamed for consistency — @contextwtf/sdk is now context-markets, @contextwtf/mcp is now context-markets-mcp, @contextwtf/cli is now context-markets-cli, and @contextwtf/react is now context-markets-react. All packages are published on npm.
  • Claude Code plugin: Context is now available in the Claude Code marketplace. Install with claude plugin marketplace add contextwtf/context-plugin to get prediction market tools directly in your agent workflows.
Mar 10, 2026
Market price fields, portfolio position changes, and search endpoint
  • Market prices: currentPrice replaced: The currentPrice field on market outcome prices has been removed, replaced by sellPrice (best bid) and buyPrice (best ask). Applies to outcomePrices in GET /markets and GET /markets/{id}. A new chancePercentage field (integer, 0–100) has been added for convenience.
  • Portfolio positions: currentPrice renamed to price: The currentPrice field on portfolio positions (GET /portfolio/positions) has been renamed to price. Type and semantics are unchanged.
  • New search endpoint: GET /markets/search — search across markets by keyword with q, limit, and offset parameters. Returns matching markets ranked by relevance.
Feb 23, 2026
Cancel endpoint rename & API key management
  • Cancel order endpoint renamed: The POST /orders/cancels endpoint has been renamed to POST /orders/cancel. The old /orders/cancels path has been removed.
  • API key management: You can now create and manage API keys directly from the app. Go to Profile → Settings to generate keys. API keys are not tied to wallets — you can use the same key with any signing wallet. For market creation access, reach out to @context on X. See the API keys guide for details.
Feb 2026
Self-trade detection, agent docs, SDK reference, developer refresh
  • Self-trade detection in simulations: Both simulation endpoints now detect and warn when your order would cross against your own resting orders. The warnings field in simulation responses is now an array of objects instead of strings — each with a type field. The new SELF_TRADE warning includes details about which orders would self-trade.
  • For Agents: New documentation section for AI agents building on Context — agent overview with capabilities and integration patterns, plus skills documentation for structured workflows.
  • TypeScript SDK reference: Complete SDK documentation covering configuration, best practices, and API reference.
  • Developer docs refresh: Major restructure — new quickstart guide, protocol overview, updated market data and placing orders guides, plus a refreshed OpenAPI specification.
  • User guide updates: New create a market guide, updated account creation and first trade flows, and a streamlined FAQ.
Jan 2026
v2 API launch
  • New endpoints: /v2/markets for listing and searching, /v2/markets/:id/orderbook with ETag support, /v2/orders for create/list/cancel, /v2/orders/simulate for pre-execution simulation, /v2/account and /v2/portfolio for account management and positions.
  • Improvements: Cursor-based pagination, ETag support for conditional requests, better error messages with specific error codes, and comprehensive rate limit headers.
  • Documentation: Complete API reference with code examples, interactive orderbook visualizations, and a comprehensive trading bot guide.
Dec 2025
CLOB trading & AI Oracle improvements
  • CLOB trading: Context now uses a central limit order book instead of an AMM — true orderbook trading with bid/ask spread, limit orders that rest in the book, market orders with slippage protection, and better price discovery. Existing positions remain valid; v1 API continues to work for basic operations, but new features require v2 API.
  • AI Oracle updates: Faster resolution (minutes instead of hours), more data sources, better edge case handling, and clearer resolution explanations.
Nov 2025
Smart wallets & Base mainnet
  • Smart wallet support: Full support for smart contract wallets including Privy embedded wallets, Safe multisig, Coinbase Smart Wallet, and any ERC-4337 account.
  • Base mainnet launch: Context is now live on Base mainnet with lower fees, fast confirmations, and full EVM compatibility.