# Raydium Openbook prerun task format

1 row = 1 task **group**

* [ ] **wallets** - aliases of wallets you want to use split by the **|** sign (for ex. one|two|three)
* [ ] **rpc** - alias of rpc you want to use
* [ ] **openbook\_market** - Openbook market ID of pool you want to run
* [ ] **amount** - amount of currency you want to spend on swap
* [ ] **slippage\_percent** - maximum slippage percent (ex. 10%, empty to have no slippage)\
  Value - "0" disables slippage functions
* [ ] **tx\_per\_buy** - amount of transactions you want to send per swap buy (0 to use spam mode)
* [ ] **tx\_per\_sell** - amount of transactions you want to send per swap buy (0 to use spam mode)
* [ ] **buy\_tx\_spam\_threads** - number of buy tx sending threads when using spam mode (1 by default)
* [ ] **sell\_tx\_spam\_threads** - number of sell tx sending threads when using spam mode (1 by default)
* [ ] **buy\_tx\_fee** - buy transaction fee for swap transactions (in SOL) (default 0.00001)
* [ ] **sell\_tx\_fee** - sell transaction fee for swap transactions (in SOL) (default 0.00001)
* [ ] **buy\_tx\_compute\_units** - compute units used for buy transactions (default 600k) (**ONLY SET THIS IF YOU KNOW WHAT YOU ARE DOING**)
* [ ] **sell\_tx\_compute\_units** - compute units used for sell transactions (default 600k) (**ONLY SET THIS IF YOU KNOW WHAT YOU ARE DOING**)
* [ ] **buy\_transaction\_tip -** tip amount for jito when buying token
* [ ] **sell\_transaction\_tip -** tip amount for jito when selling token
* [ ] **autosell\_ms** - milliseconds to automatically swap purchased token back to currency after (-1 or empty to disable)
* [ ] **autosell\_margin** - profit margin to automatically swap purchased token back to currency after it gets hit in percentage (-1 or empty to disable) (ex. 20%)\
  If you want to use stop loss and trailing stop loss, use the | format character: TP|SL|TSL (e.g. 60%|-40%|10%) to start sending tx at a margin of 60% profit or -40% SL and 10% trailing stop loss

<figure><img src="https://3057542065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhHGfG2cKzzWgbk8C1oq%2Fuploads%2FbTnV2p3HtY8nLNDIKLvg%2Fimage.png?alt=media&#x26;token=32371579-fd57-4fba-965d-9f8c917bd63b" alt=""><figcaption></figcaption></figure>

* [ ] **minimum\_liquidity** - minimum liquidity in pool for the bot to purchase the token. (for ex. if you want minimum 4000 SOL in the pool set it to 4000)
* [ ] **timestamp\_offset** - how much milliseconds before pool live timestamp you want to send transactions (for ex. -500)
* [ ] **tx\_delay** - how much milliseconds to wait before sending another transaction
* [ ] tx\_retry\_delay - how many milliseconds to wait before sending another transaction \[local retry]
* [ ] monitor\_delay - how many milliseconds the monitor should refresh the statistics
* [ ] **invert\_pool** - swaps token with currency (USDC/TOKEN -> TOKEN/USDC)
* [ ] **use\_wrapped\_sol** - whether to use preexisting wrapped solana for trades (please use this when using spam mode and only have enough wrapped SOL for your purchase)
* [ ] **always\_create\_token\_account** - set this to true to always include create token account in instruction (this will prevent transaction from confirming when token account exists) (useful when spamming tx, will only buy once on new tokens)
* [ ] **use\_jito** - whether to use jito for submitting bundles
* [ ] **additional** - additional information field. nothing required.

You can use autosell\_ms and autosell\_margin at once, the bot will sell when the first of those two conditions is met (for ex. if autosell\_ms passes before your margin hits, bot will sell then)

<mark style="color:red;">**autosell margin needs to be enabled for sell hotkeys to be enabled**</mark>

**HOTKEYS ONLY WORK ON ONE INSTANCE AT ONCE ON THE SAME SYSTEM**

**Sell hotkeys WINDOWS:**

* CTRL+L=100%
* CTRL+K=75%
* CTRL+J=50%
* CTRL+H=25%
* CTRL+G=10%

Sell hotkeys LINUX:

* ENTER=100%

Buy hotkeys:

{% hint style="danger" %}
The "Rebuy" or hotkeys shopping option only works on WINDOWS operating system. It does not work on LINUX/MAC
{% endhint %}

* CTRL+M=100% of initial purchase amount
* CTRL+N=50% of initial purchase amount
* CTRL+B=25% of initial purchase amount

<figure><img src="https://3057542065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhHGfG2cKzzWgbk8C1oq%2Fuploads%2FtVWs0n0cFqkAHr2A6VKl%2Fimage.png?alt=media&#x26;token=832dc36f-3ad4-405f-82bf-5eb4c1ff36fb" alt=""><figcaption></figcaption></figure>
