# Smart Buy/Sell

Smart Buy/Sell is a market-making tool that allows you to create flexible limit order campaigns combining both automated buy and sell activity. Unlike Price Boost or Price Drop, which focus on a single direction, Smart Buy/Sell lets you configure multiple independent orders - each with its own direction, price target, budget, timing and execution parameters - giving you full control over two-sided market-making strategies.

***

### Getting Started

To launch a Smart Buy/Sell campaign, navigate to **Market Making → Smart Buy/Sell** in the sidebar. You will need:

* A deployed token (mint address)
* A funded project wallet with sufficient SOL and/or token balance
* A selected DEX where your token's liquidity pool exists

***

### Exchange Settings

This section defines which token you are trading and where the transactions will be executed.

#### Choose Token to Pull Up

Enter your token's mint address or search for it by name. The platform will pull up the token metadata and verify that a valid liquidity pool exists on the selected DEX.

#### Select DEX

Choose the decentralized exchange where the orders will be routed. Currently supported:

* **Raydium** - the default and most widely used Solana AMM. Best suited for tokens that have already graduated from a bonding curve and have an established liquidity pool.
* **PumpFun** - a launchpad-style DEX built on Solana where tokens trade along a bonding curve. Select this option if your token was launched via PumpFun and is still trading on its native bonding curve.

Make sure your token has an active liquidity pool (Raydium) or an active bonding curve (PumpFun) before launching a campaign. If no pool or curve is found, transactions will fail.

> **Note:** If your token was originally launched on PumpFun but has since graduated and migrated its liquidity to Raydium, select Raydium as your DEX.

#### Select Project Wallets

Choose the project wallet that will fund the campaign. This wallet must hold enough SOL (for buy orders) and/or tokens (for sell orders) to cover all configured limit orders.

<figure><img src="/files/3UGQnN5qBVYMhaN4Z8gI" alt=""><figcaption></figcaption></figure>

***

### Limit Orders

The **Limit Orders** section is the core of Smart Buy/Sell. Each campaign can contain one or more independent orders. Click **+ Add Order** to add as many orders as needed.

Each order operates on its own schedule, budget, and direction - buy orders and sell orders can run in parallel within the same campaign.

***

### Configuring an Order

Each order card (e.g., **First Order**, **Second Order**) has the following settings:

#### Order Direction

Toggle between **Buy** and **Sell** at the top of each order card.

* **Buy** — The order will spend SOL to purchase your token. The conversion preview displays `0 SOL → 0 $TOKEN`.
* **Sell** — The order will sell your tokens in exchange for SOL. The conversion preview displays `0 $TOKEN → 0 SOL`.

Each order in a campaign can have a different direction, allowing you to configure simultaneous buy and sell pressure.

#### Limit

Set the price threshold (in SOL) at which the order should execute.

* For a **Buy** order: the order will execute when the token price is at or below this limit.
* For a **Sell** order: the order will execute when the token price is at or above this limit.

#### Amount

Define the total budget for this individual order.

* For a **Buy** order: enter the amount in **SOL**.
* For a **Sell** order: enter the amount in **$TOKEN**.

The conversion estimate below the fields previews the approximate output based on current market conditions.<br>

<figure><img src="/files/ftcORu1s8ftyAmMmkNVb" alt=""><figcaption></figcaption></figure>

***

### Advanced Settings

Toggle **Advanced Settings** on each order card to reveal additional execution parameters. These settings mirror those available in Price Boost and Price Drop but are configured independently per order.

#### Validator

Displays the Solana RPC node used to broadcast this order's transactions. By default, the platform uses a **Public Solana Node**. For higher reliability and speed, consider connecting a dedicated RPC endpoint.

#### Validator Tip

Sets the priority fee level for this order's transactions. Higher tips improve confirmation speed but increase overall cost.

| Level      | Description                                                                       |
| ---------- | --------------------------------------------------------------------------------- |
| **Low**    | Minimal fee. Best for non-urgent campaigns when network congestion is low.        |
| **Medium** | Balanced speed and cost. Recommended for most campaigns.                          |
| **High**   | Maximum priority. Use during high network congestion or time-sensitive campaigns. |

#### Slippage Settings

Slippage defines the maximum acceptable price difference between the expected and executed swap price. Higher slippage increases transaction success rates but may result in a less favorable execution price.

Available quick-select options:

| Option     | Description                                            |
| ---------- | ------------------------------------------------------ |
| **1%**     | Very tight — suitable for high-liquidity pools         |
| **2%**     | Conservative setting for stable pools                  |
| **3%**     | Balanced — good for most tokens                        |
| **5%**     | Recommended default for low-to-mid liquidity tokens    |
| **10%**    | Aggressive — for very low liquidity or volatile tokens |
| **Custom** | Enter any custom percentage value                      |

> **Tip:** For tokens with low liquidity, 5–10% slippage is often necessary to avoid transaction failures.

#### Time Between Transactions

Controls the delay between consecutive transactions within this order. Randomizing the interval simulates natural trading behavior.

* **Min, s** — Minimum delay between two consecutive transactions (e.g., 5 seconds).
* **Max, s** — Maximum delay between two consecutive transactions (e.g., 10 seconds).

Quick-select buttons (**5**, **10**, **30**) are available for both fields.

> **Recommendation:** Use a wider range (e.g., 5–30 seconds) for a more organic on-chain footprint.

#### Transactions Amount Range

Defines the per-transaction size within this order's budget. The platform randomizes transaction sizes within the specified range.

* **Min** — Smallest single transaction (in SOL for buy orders, in $TOKEN for sell orders).
* **Max** — Largest single transaction (in SOL for buy orders, in $TOKEN for sell orders).

Setting both to **0** lets the platform calculate optimal transaction sizes automatically based on your budget and timing.

> **Example:** For a buy order with Min = 0.1 SOL and Max = 0.5 SOL, the platform generates many small, randomized buy transactions — ideal for simulating organic micro-trades.

#### Start Date

Set a scheduled start date and time for this specific order. The order will not execute until the specified date and time is reached.

* Click the calendar icon to select a date.
* Click the clock icon to set a time.

This allows you to stagger the activation of multiple orders within the same campaign - for example, starting a buy order immediately and scheduling a sell order to trigger several hours later.

***

### Multiple Orders

You can add as many orders as needed to a single campaign by clicking **+ Add Order**. Each order is fully independent with its own:

* Direction (Buy or Sell)
* Limit price and amount
* Advanced settings (validator, slippage, timing, transaction range)
* Scheduled start date

> **Use case:** Configure a buy order to accumulate tokens below a certain price level while simultaneously running a sell order to take profit above a target price — all within a single campaign.

To remove an order, click the **trash icon** in the top-right corner of the order card.

***

### Campaign Launch

At the bottom of the page, a notice reminds you:

> *The campaign will close automatically when the budget is spent or the target is reached.*

Click **Start Campaign** to launch. Required SOL and/or tokens will be deducted from your project wallet immediately.

***

### Active Campaign Status

The right-side panel displays real-time status for all running Smart Buy/Sell campaigns.

#### Active Campaigns

When campaigns are live, each card shows:

* **Token name and ticker** — e.g., Wolfun (WOLFUN)
* **Status indicator** — a green dot labeled **Active**
* **Order progress** — current spend vs. total budget per order

When no campaigns are running, the panel displays **"No active campaigns. Active campaigns will show here."**

#### All Campaign Status

Below the active section, the **All campaign status** panel lists every campaign — both running and completed - including:

| Status               | Description                                                 |
| -------------------- | ----------------------------------------------------------- |
| **Active**           | Campaign is currently running                               |
| **Target Completed** | Target price or growth goal achieved                        |
| **Budget Used**      | Campaign stopped after the allocated budget was fully spent |
| **Stopped**          | Campaign manually stopped by user                           |
| **Failed**           | Campaign stopped due to an error or failed execution        |

***

### Best Practices

* **Start with a single order.** Test your configuration with one buy or sell order before adding multiple simultaneous orders.
* **Use limit prices strategically.** Set buy limits above the current price and sell limits below it to define a clear trading range.
* **Stagger start dates.** Use the Start Date field to schedule orders at different times, creating a more gradual market-making effect.
* **Diversify transaction sizes.** Set a wide Min–Max amount range to avoid uniform-looking on-chain activity.
* **Use realistic intervals.** Delays of 5–30 seconds between transactions mimic organic trading behavior.
* **Choose appropriate slippage per order.** Buy and sell orders may require different slippage settings depending on liquidity depth on each side.
* **Monitor the All Campaign Status panel.** Check regularly to see which orders have completed, hit targets, or been stopped.
* **Ensure sufficient wallet balance.** Buy orders consume SOL; sell orders consume tokens. Make sure your project wallet holds enough of both before launching a multi-order campaign.

***

### FAQ

**Q: Can I mix buy and sell orders in the same campaign?** Yes. Each order card is independent. You can add any combination of buy and sell orders to a single campaign. All orders will execute concurrently according to their individual settings and start dates.

**Q: What happens if my wallet runs out of SOL or tokens mid-campaign?** The affected orders will begin failing. Increase your wallet balance or stop the campaign. Make sure your wallet pool holds enough balance before launching.

**Q: Can I edit order settings while the campaign is running?** Some parameters can be adjusted via the Edit button on the active campaign card. Changes take effect on the next scheduled transaction without interrupting the campaign.

**Q: What does "Target Completed" mean?** It means the campaign reached its configured price or growth target and was automatically closed. Check the All Campaign Status panel for details.

**Q: What does "Budget Used" mean?** It means the campaign ran until its entire allocated budget was fully spent. This is the most common completion status for campaigns that were not manually stopped or target-triggered.

**Q: What does "Failed" mean?** It means the campaign was stopped due to an error or a series of failed transaction executions. Check your wallet balance, slippage settings, and RPC connection, then relaunch if needed.

**Q: What is the difference between Smart Buy/Sell and Price Boost / Price Drop?** Price Boost and Price Drop are single-direction tools focused purely on upward or downward price pressure. Smart Buy/Sell provides full flexibility — you can configure buy and sell orders simultaneously, set specific limit prices, schedule start times, and apply independent advanced settings per order. It is better suited for structured market-making strategies rather than simple directional campaigns.

**Q: What is "Frozen Money" in the campaign estimate?** Funds reserved by the Solana network for wallet-related operations, such as associated token account creation. This amount is returned when the relevant accounts are closed.

**Q: I'm getting a "Pool Not Found" error. What does it mean?** Choose **PumpFun** if your token is still trading on its native bonding curve. Choose **Raydium** if your token has an established liquidity pool. Using the wrong DEX will result in the error **"Pool Not Found"**.

**Q: Can I run multiple Smart Buy/Sell campaigns simultaneously?** Yes. Multiple campaigns can run at the same time for different tokens, each operating independently with its own orders, budgets, and wallet allocations.

**Q: What happens to unspent funds when I stop a campaign?** All remaining SOL and token balance is automatically returned to the project wallet that funded the campaign.


---

# 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://tsunammi.gitbook.io/tsunammi/market-making/smart-buy-sell.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.
