# 1-Click Trading (Instant Buy)

## 1. 1-Click Trading - Miniapp version

The **1-Click Trading** feature allows users to purchase tokens with **one click**, providing a seamless trading experience. There’s no need to manually adjust **slippage** or configure **transaction details**—simply confirm and buy instantly.

### How to Use Instant Buy

1. **Tap "Buy Presets"** – This will open the **Instant Buy Settings** window.
2. **Set "Fund Each Buy"** – Define the amount you want to allocate per trade. Ensure your wallet has sufficient funds in the **native token** of the chain you’re purchasing on.
3. **Adjust Additional Settings (Optional)**
   * **Priority Fee** – Increase this if you want faster transaction processing.
   * **Slippage Limit** – Set the maximum slippage tolerance for the trade.
4. **Tap "Apply"** to save your settings and execute purchases instantly.

<figure><img src="https://255202137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0tGrKCsbwHY7eBHNpSiC%2Fuploads%2FstnZ67AUCliitIwoHibs%2FIMG_2648.jpg?alt=media&#x26;token=73eec73d-afa8-44be-92b3-ae1b10fa0706" alt="" width="375"><figcaption></figcaption></figure>

### Instant Buy Setting

* **Fund Each Buy:** This is the amount allocated for **each individual trade**. Set this based on your **budget** and **trading strategy**.
* **Priority Fee:** The **priority fee** ensures your transaction is **processed faster** by paying a higher fee to the blockchain network. Adjusting this can help during times of **high network congestion**.
* **Slippage Limit:** Slippage refers to the **difference** between the expected price and the actual execution price. By setting a **maximum slippage percentage**, you allow FlashX to optimize the best price while ensuring your trade **executes efficiently**.

<figure><img src="https://255202137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0tGrKCsbwHY7eBHNpSiC%2Fuploads%2FzpndPotnHz2CxkaSmzNN%2FIMG_2653.jpg?alt=media&#x26;token=24cc6107-eb4e-48de-9979-79738076fa3b" alt="" width="375"><figcaption></figcaption></figure>

## 2. 1-Click Trading - Extension version

### **How to Access Instant Buy**

**Detecting Tokens**: When FlashX detects a **token’s smart contract** on **X (Twitter)**, it will highlight the token symbol, allowing you to click and buy the token immediately using the **Instant Buy** feature.

### **How Instant Buy Works**

* **Quick Token Purchase**: Instant Buy allows you to buy a token quickly by clicking on the token symbol once it’s detected on **X (Twitter)**. You can set the amount of each buy, making it easier to execute trades immediately.
* **Using Funds from Vault**: Funds for purchasing tokens will be used from your **Vault wallet** on the **respective blockchain** of the token you wish to buy.
  * **Important**: Ensure that you have enough **native tokens** (e.g., Solana for Solana-based tokens, ETH for Ethereum-based tokens) in your **Vault wallet** to make the purchase.

### **Instant Buy Settings**

**Open FlashX** and **click on the dropdown icon** at the top of the screen to access the **Instant Buy** settings.

<figure><img src="https://255202137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0tGrKCsbwHY7eBHNpSiC%2Fuploads%2FwruMk8p7D3zrVUgBYIJ3%2FScreenshot%202024-11-23%20at%2017.05.25.png?alt=media&#x26;token=8afae777-0464-4107-9fad-15bc914135d6" alt="" width="375"><figcaption></figcaption></figure>

1. **Total Fund**:
   * This is the **total amount of funds** allocated for **Instant Buy** transactions.
   * **Note**: The total fund will be **reset** each time you click **"Save Changes"**. Ensure that you update your fund allocation if needed.
2. **Fund Each Buy**:
   * This is the **amount of funds** used for each **individual trade**. You can set this amount based on your preference.
3. **Priority Fee**:
   * **Priority fees** ensure that your transaction is processed faster. This fee is paid to the blockchain network with each trade to prioritize your transaction over others.
4. **Slippage**:
   * Set the **maximum slippage** percentage for each trade. FlashX will optimize the best slippage possible within your set limit to help execute the trade efficiently.

<figure><img src="https://255202137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0tGrKCsbwHY7eBHNpSiC%2Fuploads%2F1hR8DQwGq0EPreDdUkzd%2FScreenshot%202024-11-23%20at%2017.26.57.png?alt=media&#x26;token=1f289797-8b39-4a82-ab84-edb6ed9818e9" alt="" width="375"><figcaption></figcaption></figure>

### **Auto Sell Settings**

**Auto Sell** allows you to automatically sell tokens based on market movements. You can set **Stop Loss** and **Take Profit** to help manage your trades.

1. **Stop Loss**:
   * If the token price **decreases** by a certain percentage, it will automatically trigger a **sell** to minimize losses. Set your desired percentage to activate the sell.
2. **Take Profit**:
   * If the token price **increases** by a set percentage, it will trigger a **sell** to lock in profits. Set your desired percentage to trigger the sale.


---

# 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.flashx.ai/1-click-trading-instant-buy.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.
