> For the complete documentation index, see [llms.txt](https://help.keyring.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.keyring.app/keyring-one/defi/trading.md).

# Trading

The **Trading** feature in KEYRING ONE allows users to place a **Limit Order** to buy or sell tokens at a price they choose.

Unlike a regular swap, which executes immediately at the current market price, a Limit Order waits until the market reaches the specified price before the swap can be executed.

When creating a Limit Order, you choose:

* The tokens you want to buy or sell
* The amount
* The price at which you want the swap to occur

Limit Orders are executed through **Uniswap V4 infrastructure**. Orders are submitted to a Uniswap V4 pool, while the Hook configured for the pool manages the order conditions and execution. KEYRING ONE acts as the interface for creating and managing the order and does not custody user assets.

## Limit Order <a href="#limit-order" id="limit-order"></a>

### Buy Order <a href="#buy-order" id="buy-order"></a>

A Buy Limit Order allows you to buy a token when its price reaches the price you specify.

1. Go to **Trading** in KEYRING ONE.
2. Select the trading pair.
3. Select **Buy**.
4. Enter the price at which you want to buy the token. For a Buy Limit Order, this is normally lower than the current market price.
5. Enter the quantity you want to buy.
6. Review the estimated **Pay at most** amount.
7. Click **Buy \[Token] for \[Token]**.
8. Review the order details on the **Confirm limit order** screen.
9. Click **Confirm**.
10. If token approval is required, click **Confirm in wallet** and approve the token from your connected wallet.
11. Under **Limit submit**, click **Confirm in wallet** and confirm the transaction in your wallet.
12. Wait for the transaction to complete.

Once submitted successfully, the order will appear in **Order history** with the status **Placed**.

<figure><img src="https://357078050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGG08yVdyf2Am7Dz4fIrs%2Fuploads%2FW8uifvHUJNohavhWT7NT%2FLimit-order-buy-new.gif?alt=media&amp;token=16d5b98c-aab4-44c0-9e85-f8f8dc3d83a2" alt=""><figcaption></figcaption></figure>

### Sell Order <a href="#sell-order" id="sell-order"></a>

A Sell Limit Order allows you to sell a token when its price reaches the price you specify.

1. Go to **Trading** and select the trading pair.
2. Select **Sell**.
3. Enter the price at which you want to sell the token. For a Sell Limit Order, this is normally higher than the current market price.
4. Enter the quantity you want to sell.
5. Review the estimated **Receive at least** amount.
6. Click **Sell \[Token] for \[Token]**.
7. Review the order details and click **Confirm**.
8. If token approval is required, confirm the approval transaction in your connected wallet.
9. Confirm the **Limit submit** transaction in your wallet.
10. Wait until the order has been submitted successfully.

The new order will appear in **Order history** with the status **Placed**.

<figure><img src="https://357078050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGG08yVdyf2Am7Dz4fIrs%2Fuploads%2FA2kpSqpZkOqBvDvVtzur%2FLimit-order-sell-new.gif?alt=media&amp;token=4fe653b3-1e19-4e63-9aa3-3f07a56e75dc" alt=""><figcaption></figcaption></figure>

### Manage Limit Orders <a href="#manage-limit-orders" id="manage-limit-orders"></a>

All Limit Orders can be viewed under **Order history**.

Depending on the order, you may see statuses such as:

* **Placed** - The order is active and waiting for the specified price.
* **Filled** - The order has been executed.
* **Cancelled** - The order was cancelled before execution.
* **Withdrawn** - The assets from a filled order have been withdrawn back to your wallet.

A placed order can remain open until it is filled or cancelled.

## Withdrawal <a href="#withdrawal" id="withdrawal"></a>

### Withdraw Assets from a Filled Order <a href="#withdraw-assets-from-a-filled-order" id="withdraw-assets-from-a-filled-order"></a>

After a Limit Order has been filled, the resulting tokens must be withdrawn from the pool back to your wallet.

1. Find the order with the status **Filled**.
2. Click **Withdraw**.
3. Confirm the withdrawal transaction in your connected wallet.
4. Wait while the transaction is processed.
5. Once the transaction is completed, the order status will change to **Withdrawn**, and the received assets will be available in your wallet.

<figure><img src="https://357078050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGG08yVdyf2Am7Dz4fIrs%2Fuploads%2FV8tBREvTKgvxnv8LEhyX%2FLimit-order-withdraw-new.gif?alt=media&amp;token=27b6ee58-b958-4c7d-a2ae-d1dbc7473d27" alt=""><figcaption></figcaption></figure>

### Withdraw Assets from a **Partially** Filled Order <a href="#withdraw-assets-from-a-partially-filled-order" id="withdraw-assets-from-a-partially-filled-order"></a>

Limit Orders may execute in multiple portions rather than filling 100% at once. Users can withdraw the executed portion at any time, but withdrawing from a partially filled order will automatically cancel the remaining unfilled portion.

<figure><img src="https://357078050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGG08yVdyf2Am7Dz4fIrs%2Fuploads%2F7mJKg4zMImzba80tEoh4%2FLimit-order-partial-fill.gif?alt=media&amp;token=ae264d04-a193-4b31-99f0-b5801975342f" alt=""><figcaption></figcaption></figure>

## Cancel an Order <a href="#cancel-an-order" id="cancel-an-order"></a>

1. Find the order with the status **Placed**.
2. Click **Cancel**.
3. Review the cancellation request.
4. Confirm the transaction in your connected wallet.
5. Wait for the transaction to complete.

Cancelling an order requires an on-chain transaction and therefore may incur a network fee.

<figure><img src="https://357078050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGG08yVdyf2Am7Dz4fIrs%2Fuploads%2FNl4zuqTsAqxtOPTxS5ev%2FLimit-order--cancel.gif?alt=media&amp;token=df56ade5-fcf4-48ab-b83a-f81cda850219" alt=""><figcaption></figcaption></figure>

## Supported Trading Pairs <a href="#supported-trading-pairs" id="supported-trading-pairs"></a>

KEYRING ONE currently supports Limit Orders only for selected trading pairs.

When you select a blockchain network, KEYRING ONE displays the available pools that support Limit Orders on that network.

All supported trading pairs use the **Token/USDC** format, where USDC is used to display the token's price in USD.

For each supported pair, you can:

* **Buy:** Purchase the token using USDC when its price reaches your specified level.
* **Sell:** Sell the token for USDC when its price reaches your specified level.

You cannot create Limit Orders for trading pairs that are not listed on KEYRING ONE.

**More trading pairs will be added in the future** as KEYRING ONE expands its supported pools.

> **Important:** Limit Orders are executed on-chain through Uniswap V4. Execution may vary depending on market conditions, liquidity, price movement, and network conditions. Reaching the specified price does not necessarily guarantee immediate execution. Placing, cancelling, approving, submitting, or withdrawing an order may require confirmation or signing in your connected wallet and may incur network fees.
