Webhooks for Prediction Market Automation
Webhooks let you receive instant notifications when something important happens, without constantly polling for updates.
What Triggers Webhooks
SimpleFunctions can send webhooks for:
- Price alerts: A contract crosses a threshold you set
- Edge alerts: New edge detected above your minimum
- Strategy triggers: A strategy entry or exit condition is met
- Evaluation updates: Thesis confidence changes significantly
- Heartbeat summaries: Periodic summaries of monitoring activity
Webhook Payload
Each webhook sends a JSON payload with structured data:
{
"type": "strategy_trigger",
"thesisId": "...",
"strategy": "S-001",
"action": "entry",
"market": "KXRECSSNBER-26",
"currentPrice": 0.29,
"thesisImplied": 0.42,
"edge": 0.13,
"timestamp": "2026-03-19T14:30:00Z"
}
Common Integrations
- Slack/Discord: Forward webhook payloads to a channel for team visibility
- Telegram: Get mobile notifications via a Telegram bot
- Custom bots: Trigger automated trading workflows
- Zapier/Make: Connect to any service without code
Setting Up Webhooks
You can set a webhook URL per-thesis:
sf thesis update --webhook "https://your-app.com/webhook/sf"
The agent also supports webhooks as a signal input — external services can push signals to your thesis via webhook, which the evaluation cycle processes like any other signal.