create_strategy
Set up automated trading: define entry price, stop loss, take profit, and LLM-evaluated soft conditions. The heartbeat engine checks conditions every 15 min and executes when met.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | SimpleFunctions API key. Get one at https://simplefunctions.dev/dashboard/keys | |
| market | Yes | Human-readable market name | |
| horizon | No | Time horizon | medium |
| marketId | Yes | Market ticker e.g. KXWTIMAX-26DEC31-T150 | |
| stopLoss | No | Stop loss: bid <= this value (cents) | |
| thesisId | Yes | Thesis ID | |
| direction | Yes | Trade direction | |
| rationale | No | Full logic description | |
| entryAbove | No | Entry trigger: ask >= this value (cents, for NO direction) | |
| entryBelow | No | Entry trigger: ask <= this value (cents) | |
| takeProfit | No | Take profit: bid >= this value (cents) | |
| maxQuantity | No | Max total contracts | |
| softConditions | No | LLM-evaluated conditions | |
| perOrderQuantity | No | Contracts per order |