Skip to main content

For agents

Context Markets is built for programmatic access. Structured JSON APIs, deterministic order flows, EIP-712 signed orders, and machine-readable market data make it a natural fit for AI agents.

Quick start

# Install the CLI
npm install -g @contextwtf/cli

# Set up your wallet (generates a new one if needed)
context-cli setup

# Mint test USDC and deposit (testnet)
context-cli account mint-test-usdc --amount 1000
context-cli account deposit 1000

# Browse markets and place your first trade
context-cli markets list --status active --limit 5
context-cli orders create --market <market-id> --outcome yes --side buy --price 45 --size 10

Choose your tool

ToolInterfaceBest forAuth required
MCP ServerNatural language via AI assistantsAgents in Claude, Cursor, VS CodeOptional (read-only without)
Claude Code PluginSlash commands + MCPClaude Code users who want everythingOptional
TypeScript SDKProgrammatic TypeScriptCustom agents, bots, backendsAPI key + signer for trading
React SDKReact hooksFrontend apps, dashboardsAPI key + wagmi wallet
CLIShell commandsScripting, pipelines, automationAPI key + private key for trading

Authentication

Two levels of access:
  • Read-only (no auth): Browse markets, get quotes, view orderbooks, price history
  • Trading (API key + private key): Place orders, manage portfolio, deposit/withdraw
# Read-only — no auth needed
export CONTEXT_API_KEY="your-api-key"

# Trading — also needs a private key
export CONTEXT_PRIVATE_KEY="0x..."
Get an API key from the Context dashboard. Read-only market data works without any key.
Use caseRecommended toolsDescription
Trading botSDK + Skills (Trade)Autonomous order management with EIP-712 signing
Market scannerMCP Server or CLIBrowse and analyze markets without trading
Portfolio managerSDK + CLIMonitor positions, rebalance, claim winnings
Market makerSDK + Skills (Trade)Quote both sides, manage inventory
Frontend appReact SDK + Skills (Build)Build trading UIs with live data
Research agentMCP Server + Skills (Research)Analyze oracle data, find mispricings

Network

Context Markets is currently on Base Sepolia testnet. All API endpoints, contract addresses, and examples use testnet. Mainnet coming soon.
  • API base URL: https://api-testnet.context.markets/v2
  • Chain: Base Sepolia (chain ID 84532)