# Example Solver Order Flow

## Introduction <a href="#id-6ef2" id="id-6ef2"></a>

Solvers, or market makers, are the backbone of the IntentX platform, ensuring that trades are executed smoothly and efficiently.

Their role, while more complex, is pivotal in ensuring traders get the best possible outcomes. In this section, we’ll unravel the steps a solver takes, highlighting the depth of their involvement and the sophistication of their operations.

{% hint style="info" %}
**Note:** The below is just an example of how a solver can hedge off-chain. The system is designed for maximum flexibility and solvers can operate with nearly infinite degrees of freedom.
{% endhint %}

### 1. The Solver Deposits Collateral On- and Off-Chain <a href="#id-7f9f" id="id-7f9f"></a>

<div data-full-width="false"><figure><img src="/files/y2H34naRhdLEgLIJSUAw" alt=""><figcaption></figcaption></figure></div>

The solver starts by depositing their collateral at on- and off-chain venues. Specifically, they deposit 50% of their desired collateral in the execution engine’s on-chain contracts and the remaining 50% at the off-chain hedging venue(s) of choice.

{% hint style="info" %}
**Note:** These off-chain hedging venues can include, but are not limited to, centralized futures exchanges, OTC trading desks, other.
{% endhint %}

### 2. The Solver Sets their Market Making Software <a href="#id-4a8a" id="id-4a8a"></a>

<div data-full-width="false"><figure><img src="/files/FNIMV8Fbeu9XW2erWPJy" alt=""><figcaption></figcaption></figure></div>

Solvers can now set up their market making software, checking they can:

1. Query/return data and execute trades using **off-chain** hedging venue(s).
2. Interact with the **on-chain** execution engine contracts.
3. **Stream quotes** to the **IntentX** front-end via WebSockets and APIs.

### 3. The Solver “Senses” Pricing Data and Streams Quotes to IntentX <a href="#id-05f1" id="id-05f1"></a>

<div data-full-width="false"><figure><img src="/files/KpYoLLg0uTARiOERMHPQ" alt=""><figcaption></figcaption></figure></div>

Solvers **stream price quotes** directly to the IntentX front-end using pricing data obtained from their desired hedging venue(s). Price feeds are **looped constantly** to provide the **most accurate data** and quotes are streamed to the IntentX front-end at **a desired spread** (+/- Xbps vs. order book price feed sensed off-chain).

### 4. A Trader Inputs Trade Intent, Accepts Quote, and Requests for Trade <a href="#id-9d9f" id="id-9d9f"></a>

<div data-full-width="false"><figure><img src="/files/XPvwVjRHWDZDByckUAcZ" alt=""><figcaption></figcaption></figure></div>

As mentioned in the [Trading Tutorials ](/intentx-platform/trading-on-intentx/trading-tutorials.md)section of our documentation, a trader on the IntentX front-end inputs their intent to trade (size, order type, leverage) and, in return, are streamed pricing quotes from solvers in real-time. **IntentX’s proprietary matching system** always provides traders with the **best quote** per their intent to trade.

If they accept the quote, the trader submits a **“request for trade”** and **deposits their required margin** with the **on-chain** execution engine through a signature.

### 5. The Solver Receives Request for Trade, Hedges Off-Chain, and Opens the Trade <a href="#aa89" id="aa89"></a>

<div align="right" data-full-width="false"><figure><img src="/files/kCa4n7l3Z0YEZbTp53HN" alt=""><figcaption></figcaption></figure></div>

As mentioned in step 4, the “request for trade” is submitted on-chain to the solver. The solver can then **pro-actively hedge** the **trader’s intended position** **off-chain** at their desired hedging venue(s). This is done preemptively to allow the solver to be completely **delta-neutral** for their future on-chain position.

The solver then fills the trade request and deposits their required margin in the on-chain perpetual contract with a signature.

The trade is now **open**.

{% hint style="info" %}
**Note:** The solver is not required to hedge, they can take directional risk should they choose or hedge in other methods such as spot holdings. This simply describes an example scenario.
{% endhint %}

### 6. Both Parties Monitor/Rebalance Margin, Close the Trade, or are Liquidated <a href="#id-9a2e" id="id-9a2e"></a>

<div data-full-width="false"><figure><img src="/files/ww244Te7kwy8LUuzJOXP" alt=""><figcaption></figcaption></figure></div>

Both the **trader (on-chain)** and the **solver (on- and off-chain)** must rebalance their collateral to maintain the required margin. If they do not, they will be **liquidated** by a third party.

As mentioned in the [Trading Tutorials](/intentx-platform/trading-on-intentx/trading-tutorials.md) section of our documentation the **trader** must monitor and rebalance their **on-chain cross-margin account** to maintain the required collateral, or they will be liquidated. They can also **“request to close”** the position and obtain their collateral back **+/- any PnL.**

The **solver** must maintain **both their on- and off-chain margin**. In the event the trader requests to close their position, the solver can preemptively **close their off-chain position** (remaining delta-neutral), and then accept the **on-chain request to close** by trade&#x72;**.**

Third party liquidators continuously monitor the margin of open positions using oracle price feeds. Both traders and solvers can be liquidated if their margin balances drop below the requirement.

### Conclusion: On-Chain and Off-Chain Orchestration <a href="#id-1c5b" id="id-1c5b"></a>

The efficiencies of the intents-based system lies in its seamless orchestration between on-chain and off-chain activities, catering to both traders and solvers.

**Traders:**

* Optimal price execution accessing off-chain liquidity on-chain
* Streamlined RFQ process to provide quick fill times (<5 seconds)
* Access to derivatives products that may not exist on-chain
* Permissionless, self-custodial, and trustless on-chain execution
* Fill large orders by multiple hedgers, who act as liquidity aggregators for efficient price discovery

**Solvers:**

* Delta-neutral positions by re-arranging order flow to allow for proactive hedging
* Flexibility to source liquidity from any locations to maximize arbitrage (CEX, DEX, OTC, Spot, CME options, etc.)
* Advanced infrastructure such as netting, which allows solvers to net directional exposure amongst each other at a zero / low cost-basis (future product)

One of the key advantages of the system is it’s openness and flexibility, allowing the free market the tools to most efficiently and optimally execute derivatives trade agreements on both the trader and solver side.


---

# 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://docs.intentx.io/intentx-platform/intentx-solver-network/example-solver-order-flow.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.
