> ## 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.

# Quickstart

> Create your first Miramarket strategy.

This guide shows the shortest path from a blank canvas to a valid strategy.

## 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 as `YES` 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 a `SPLIT_100` allocation.

## 5. Set initial principal

Set `initial_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_100` allocations.
* No graph cycles.
* Market token IDs for market actions.

## 7. Export strategy JSON

Export the strategy when you want a portable representation.

See [strategy JSON format](/strategy-reference/json-format) for the canonical fields and [examples](/strategy-reference/examples) for complete objects.
