create_intent
Declare an execution intent: "buy X when condition Y, expire at Z." Intents are the single gateway for all order execution. The local runtime daemon evaluates triggers and executes via user's Kalshi/Polymarket keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| venue | Yes | Exchange venue | |
| action | Yes | Trade action | |
| apiKey | Yes | SimpleFunctions API key. Get one at https://simplefunctions.dev/dashboard/keys | |
| source | No | Intent source: agent, manual, idea | agent |
| expireAt | No | ISO timestamp when intent expires (default: +24h) | |
| marketId | Yes | Market ticker (e.g. KXFEDDEC-25DEC31-T100) | |
| maxPrice | No | Max price per contract in cents (1-99). Omit for market order. | |
| sourceId | No | Source reference (idea ID, thesis ID, etc.) | |
| direction | Yes | Contract direction | |
| rationale | No | Why this trade — logged for audit trail | |
| autoExecute | No | Auto-execute without later human confirmation. Defaults to false unless explicitly set true. | |
| marketTitle | Yes | Human-readable market name | |
| triggerType | No | When to execute | immediate |
| triggerPrice | No | Price trigger threshold in cents (for price_below/price_above) | |
| targetQuantity | Yes | Number of contracts |