This guide shows the shortest path from a blank canvas to a valid strategy.Documentation Index
Fetch the complete documentation index at: https://docs.miramarket.org/llms.txt
Use this file to discover all available pages before exploring further.
1. Open the strategy builder
Open the Miramarket strategy builder in your browser.2. Add a market action
Choose a market from the palette and add it to the canvas. A market action tells Miramarket where capital can move. For a basic strategy, choose a binary market and select the outcome you want to buy, such asYES or NO.
3. Add a condition
Add a condition when you want the strategy to wait for a rule before choosing an action. Common first conditions include:- Price crosses above a threshold.
- Price crosses below a threshold.
- A time condition triggers before close.
- A performance condition reaches a target.
4. Connect the condition to actions
A condition and its selectable actions form a decision group. The condition decides which action runs. Use a single action for winner-takes-all logic. Use multiple actions when you want aSPLIT_100 allocation.
5. Set initial principal
Setinitial_principal_usd to the amount of capital the strategy can allocate.
Miramarket validates that the amount is positive. For live market actions, validation also checks whether the strategy has enough principal to satisfy minimum order constraints after splits and estimated fees.
6. Validate the strategy
Use the validation result in the builder before you run or export the strategy. A valid strategy has:- One root node.
- Valid condition and action node types.
- Decision groups for every condition.
- Valid
SPLIT_100allocations. - No graph cycles.
- Market token IDs for market actions.