# How It Works

### **Market Flow (High-Level)**

Each market operates in a continuous cycle composed of **two phases of \~5 minutes each**:

#### **1. Prediction Phase (\~5 minutes)**

* A new round opens
* Users can take a position: **Up or Down**
* The market remains open until the next oracle update

#### **2. Oracle Lock Event (Start of next 5 minutes)**

* At the 5-minute mark, the oracle submits a price
* This price becomes the **lockPrice**
* The market is now **closed to new positions**

#### **3. Resolution Phase (\~5 minutes)**

* The market remains locked
* No further interaction is allowed
* At the next oracle update:
  * The **closePrice** is recorded
  * The outcome is determined

#### **4. Outcome**

* If **closePrice > lockPrice → Up wins**
* If **closePrice < lockPrice → Down wins**
* If **closePrice = lockPrice → Protocol wins**

#### **5. Payout**

* Winners receive rewards automatically after resolution


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://minute-markets.gitbook.io/minute-markets-docs/minute-markets-documentation/how-it-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
