SYSTEM R AI

Prediction Markets

Polymarket and Kalshi: trade events and outcomes programmatically.

Polymarket

ID: polymarket | Markets: Prediction market CLOB | Chain: Polygon

Polymarket is a prediction market using a central limit order book (CLOB) on Polygon. Trade binary outcomes on real-world events.

ParameterTypeDescription
api_keystringPolymarket API key.
api_secretstringPolymarket API secret.
passphrasestringPolymarket API passphrase.
curl -X POST https://agents.systemr.ai/v1/broker/connect \
  -H "X-API-Key: sr_agent_..." \
  -H "Content-Type: application/json" \
  -d '{
    "broker_type": "polymarket",
    "connection_params": {
      "api_key": "YOUR_API_KEY",
      "api_secret": "YOUR_API_SECRET",
      "passphrase": "YOUR_PASSPHRASE"
    }
  }'

Market types

Polymarket offers binary outcome contracts. Each market has YES and NO shares that trade between $0 and $1. Markets resolve to $1 (correct outcome) or $0 (incorrect outcome).

Example markets: election outcomes, economic data releases, sports events, technology milestones.


Kalshi

ID: kalshi | Markets: CFTC-regulated event contracts | Regulation: US regulated

Kalshi is a CFTC-regulated exchange for event contracts. Fully compliant with US regulations.

ParameterTypeDescription
emailstringKalshi account email.
passwordstringKalshi account password.
api_keystringOptional. Kalshi API key (alternative to email/password).
curl -X POST https://agents.systemr.ai/v1/broker/connect \
  -H "X-API-Key: sr_agent_..." \
  -H "Content-Type: application/json" \
  -d '{
    "broker_type": "kalshi",
    "connection_params": {
      "email": "your@email.com",
      "password": "your_password"
    }
  }'

Or using API key authentication:

curl -X POST https://agents.systemr.ai/v1/broker/connect \
  -H "X-API-Key: sr_agent_..." \
  -H "Content-Type: application/json" \
  -d '{
    "broker_type": "kalshi",
    "connection_params": {
      "api_key": "YOUR_KALSHI_API_KEY"
    }
  }'

Market types

Kalshi offers event contracts on weather, economics, politics, finance, and more. Contracts trade between $0.01 and $0.99, settling at $1.00 or $0.00.


Placing orders on prediction markets

After connecting, use the standard order endpoint:

curl -X POST https://agents.systemr.ai/v1/broker/order \
  -H "X-API-Key: sr_agent_..." \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "PRES-2028-DEM",
    "side": "buy",
    "quantity": "100",
    "order_type": "limit",
    "limit_price": "0.45"
  }'

The symbol format depends on the prediction market. Check each platform's market identifiers.

Each order placement costs $0.015 and runs risk validation before submission.

System R AI
Python SDKpip install systemr
MCP Serveragents.systemr.ai/mcp/sse
OpenAPI Specagents.systemr.ai/openapi.json
Machine Docsagents.systemr.ai/llms.txt
GitHubSystem-R-AI
X@Systemrai
YouTube@systemr_ai
Emailhello@systemr.ai
Phone628 333 6693
Address7901 4TH ST N, STE 28529, ST PETERSBURG, FL 33702
TermsTerms of Service
PrivacyPrivacy Policy
SecuritySecurity Policy
© 2026 System R AI. Software platform. Not financial advice.

On this page