Skip to content

Prediction Markets

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.
Terminal window
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"
}
}'

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.


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).
Terminal window
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": "[email protected]",
"password": "your_password"
}
}'

Or using API key authentication:

Terminal window
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"
}
}'

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.


After connecting, use the standard order endpoint:

Terminal window
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.