How to Use the Volume Futures Crypto Trading Bot Preset in Origami Tech

Introduction
The Futures | OneWay Mode | Volume Bot is a ready made crypto trading bot preset in Origami Tech for automated execution on perpetual futures markets.
The strategy repeatedly opens and closes a position using the current best ask and best bid prices. Before a new buy order is allowed, the bot checks the current market spread against a predefined limit. The default preset uses an order value of approximately 12 units of quote currency, a maximum spread of 0.2%, and a 25 second pause between execution cycles.
This guide explains how the Volume Bot works, what every major formula controls, which markets fit the strategy, how to launch the preset, and which parameters can be adjusted for different market conditions.
What Is the Volume Futures Crypto Trading Bot?
The Volume Bot is designed for futures crypto trading in One Way position mode.
One Way mode keeps a single net position for the selected futures market. The strategy reads that position and uses its current size to decide which side of the next execution cycle should be active.
With the default configuration, the bot follows a simple sequence:
- Read the current position and futures order book.
- Calculate the current spread between the best ask and best bid.
- Allow a buy when the position condition is satisfied and the spread remains below the configured limit.
- Buy approximately 12 units of quote currency at the current best ask.
- When the available position becomes positive, activate the sell side.
- Sell the available position at the current best bid.
- Wait 25 seconds before the next execution cycle.
The result is a compact crypto bot trading strategy designed around repeated order execution and controlled spread conditions.
Who Is the Volume Crypto Trading Bot Useful For?
The Volume Bot can be useful for users who want to automate repeated futures execution without manually placing each order.
Its logic is especially relevant when the operational goal is consistent crypto trading turnover while maintaining control over the maximum spread accepted by the strategy.
The preset also provides a useful starting point for traders who want to understand how order book data, position state and order sizing can interact inside an automated crypto trading bot platform.
The strategy should be evaluated primarily as an execution and volume strategy. Each completed cycle involves buying at the ask and selling at the bid, so spread and exchange fees directly affect the economic cost of running the bot.
Which Markets Work Best for the Volume Bot?
The Volume Bot is intended for perpetual futures markets where One Way position mode is supported.
Market liquidity is particularly important because the strategy interacts directly with the top of the order book.
Pairs with a tight and relatively stable spread generally provide more predictable conditions for this type of execution. Deep order books also reduce the likelihood that the required order size materially changes the available price.
A suitable market therefore usually has:
- sufficient futures liquidity
- a consistently narrow bid ask spread
- enough order book depth for the selected order size
- stable access to the required One Way position mode
- exchange fees that remain reasonable relative to the configured order size and execution frequency
A thin market may show larger and less stable spreads. The spread filter can prevent some executions in those conditions, but liquidity should still be reviewed before launch.
How the Volume Crypto Trading Bot Works
The preset combines position data, live futures order book prices and a spread filter.
Current Position
position_ = position(grid().position_side, grid().margin_mode)The position_ variable reads the current position using the position side and margin mode configured for the bot.
The strategy later checks position_.available_quantity to determine whether the buy or sell condition should be active.
Buy Price
price_buy = orderbook_futures().ask[0].priceThe bot takes the best ask price from the futures order book.
The best ask is the lowest currently available selling price.
This value becomes the execution price when the bot is buying.
Buy Amount
amount_buy = 12 / execute_priceThe default strategy allocates approximately 12 units of quote currency to each buy.
For example, with an execution price of 3,000:
12 / 3000 = 0.004
The resulting order size is 0.004 units of the base asset.
For a USDT quoted pair, this corresponds to approximately 12 USDT of notional exposure before fees and possible execution differences.
The number 12 is therefore one of the most important parameters for controlling the amount of crypto trading volume generated by each cycle.
Sell Price
price_sell = orderbook_futures().bid[0].priceThe sell side uses the best bid price.
The best bid is the highest currently available buying price in the order book.
This means the default Volume Bot buys using the current ask and sells using the current bid.
Sell Amount
amount_sell = position_.available_quantityThe sell amount equals the available size of the current position.
Once the bot has a positive position, the strategy uses that available quantity as the sell volume.
The default logic therefore closes the available positive position rather than using another fixed sell amount.
Spread Limit
spread_limit = 0.002The default maximum spread is:
0.002 = 0.2%
This parameter defines the maximum spread environment in which the buy condition can remain active.
A tighter limit allows the bot to operate only when bid and ask prices are closer together.
A wider limit permits execution under broader spread conditions.
Because the strategy buys at the ask and sells at the bid, a wider allowed spread also increases the potential execution cost of a complete round trip.
Current Spread
The preset calculates the relative spread using the current best ask and best bid.
The visible formula corresponds to the standard relationship:
spread_current =
orderbook_futures().ask[0].price /
orderbook_futures().bid[0].price - 1For example:
Best ask = 100.10
Best bid = 100.00
The resulting spread is:
100.10 / 100.00 - 1 = 0.001
or:
0.1%
With the default spread_limit of 0.2%, this market condition passes the spread check.
Execution Price
execute_price =
price_buy if side == 'buy' else price_sellThe execution price changes according to the current order direction.
For a buy, the bot uses price_buy, which is the best ask.
For a sell, it uses price_sell, which is the best bid.
The strategy therefore follows live order book prices rather than using a fixed predefined price.
Execution Volume
execute_volume =
amount_buy if side == 'buy' else amount_sellThe execution volume also depends on direction.
The buy side uses:
12 / execute_price
The sell side uses:
position_.available_quantity
This creates two different sizing rules inside the same crypto trading bot.
The buy amount is controlled by a fixed quote value. The sell amount follows the actual available position.
Buy Condition
The preset activates one buy order when the current position condition is satisfied and the current spread remains below the configured spread limit.
The visible logic checks:
position_.available_quantity <= 0
and:
spread_current < spread_limit
With the default settings, a buy therefore requires the spread to remain below 0.2%.
The position check also prevents the bot from continuously adding to an already positive position under the standard configuration.
Sell Condition
sell_orders_count =
1 if position_.available_quantity > 0 else 0A sell order becomes active when the available position quantity is positive.
The sell order then uses:
execute_price = price_sell
and:
execute_volume = position_.available_quantity
The bot therefore attempts to sell the available positive position at the current best bid.
Execution Delay
sleep_after_second = 25The default preset waits 25 seconds between execution cycles.
This parameter directly affects how frequently the strategy can generate new orders.
A shorter delay can increase potential crypto trading frequency and turnover.
A longer delay reduces the maximum number of cycles the bot can perform over the same period.
Execution frequency should always be considered together with exchange fees and spread costs.
Default Volume Bot Parameters
Parameter Default Fuction
position_ Dynamic Reads the current futures position
price_buy Best ask Price used for buy execution
amount_buy 12/execute_price. Approximately 12 units of quote currency per buy
price_sell Best bid. Price used for sell execution
amount_sell Available position quantity Size of the sell order
spread_limit 0.002 Maximum default spread of 0.2%
spread_current Ask divided by bid minus 1 Current relative market spread
execute_price Buy price or sell price Selects execution price by direction
execute_volume Buy amount or sell amount Selects order volume by direction
buy_orders_count 0 or 1 Activates a buy when position and spread conditions pass
sell_orders_count 0 or 1 Activates a sell when the position is positive
sleep_after_second 25. Pause between strategy cycles
What Does One Default Cycle Look Like?
Assume the following market conditions:
Best bid = 100.00
Best ask = 100.10
spread_limit = 0.002The current spread is:
100.10 / 100.00 - 1 = 0.001This equals 0.1%, which is below the default 0.2% spread limit.
The buy condition can therefore pass if the current position condition also allows it.
The buy size becomes approximately:
12 / 100.10 = 0.11988The bot can buy around 0.11988 units of the base asset.
Once the position becomes positive, the sell side becomes active and uses the available position quantity.
The bot then targets the current best bid for the sell order.
If prices stayed exactly at 100.10 ask and 100.00 bid, the round trip would cross a 0.1% spread. Exchange fees would create an additional cost.
This is why spread control matters for the Volume Bot.
How to Launch the Volume Crypto Trading Bot
- Open Origami Tech and choose the project and exchange account you want to use.
- Create a new futures crypto trading bot and select the required perpetual futures pair.
- Configure the account for One Way position mode, together with the margin mode and leverage appropriate for your setup.
- Open the preset selector and choose: Futures | OneWay Mode | Volume Bot
- Review the imported formulas and default parameters before activation.
- Pay particular attention to:
amount_buyspread_limitsleep_after_secondyour leverage
your margin configuration
the liquidity and fees of the selected market
7. Save the crypto trading bot after reviewing the configuration and activate it when the resulting order logic matches your intended setup.
Which Parameters Should You Change?
amount_buy
Default:
12 / execute_price
The number 12 determines the approximate quote value of each new buy.
Increasing this value raises the amount processed during each cycle.
For example:
25 / execute_price
would create a buy worth approximately 25 units of quote currency.
A larger value can increase crypto trading volume faster, while also increasing exposure and the absolute amount paid in spread and fees.
A smaller value provides more conservative sizing and may be more appropriate for smaller accounts or markets with limited order book depth.
spread_limit
Default:
0.002
This corresponds to 0.2%.
Reducing it to:
0.001
would limit new buys to spreads below approximately 0.1%.
This creates a stricter execution filter.
Increasing it to:
0.003
would allow spreads up to approximately 0.3%.
This allows the bot to operate under a wider range of market conditions while accepting potentially higher spread costs.
For a Volume Bot, this parameter should be evaluated together with maker and taker fees and the normal spread of the selected market.
sleep_after_second
Default:
25
This controls the delay between execution cycles.
Increasing it reduces the maximum frequency of the crypto trading bot.
For example:
60
creates a one minute pause between cycles.
Reducing the value makes the bot capable of checking for a new cycle sooner.
Higher frequency can increase crypto trading volume, but it can also increase fees and total execution costs.
price_buy and price_sell
Default:
price_buy = orderbook_futures().ask[0].price
price_sell = orderbook_futures().bid[0].price
These formulas define the execution model of the preset.
Changing them modifies how the crypto trading bot interacts with the order book.
The default configuration targets the current best available prices on both sides, which makes the strategy straightforward but also means each completed round trip can cross the spread.
These parameters are better treated as part of the strategy logic rather than routine risk settings.
amount_sell
Default:
position_.available_quantity
The default bot attempts to sell the available positive position.
Changing this formula would create a different position management model.
For example, using only a fraction of the position would introduce partial exits and leave residual exposure after each cycle.
Such a modification changes the behavior of the preset substantially and should be tested as a separate crypto bot trading strategy.
How to Configure the Volume Bot for Different Markets
A highly liquid perpetual futures pair with a tight spread can usually support the default logic more predictably because best bid and best ask prices remain relatively close.
A less liquid market may require a tighter spread_limit and smaller amount_buy to reduce exposure to unstable order book conditions.
During periods of higher volatility, both spread and available liquidity can change quickly. Smaller order sizes and a longer execution delay can reduce the rate at which the strategy accumulates execution costs.
For markets with consistently very tight spreads, the trader can evaluate whether the spread threshold or execution interval should be adjusted according to the intended volume target and fee structure.
Every change should be evaluated together with actual market liquidity rather than from the nominal spread alone.
Spread, Fees and the Real Cost of Volume
The spread filter is especially important because the default strategy buys at the ask and sells at the bid.
Suppose the order value is approximately 12 USDT and the current spread reaches the maximum default level of 0.2%.
An illustrative spread cost for one immediate round trip is approximately:
12 × 0.002 = 0.024 USDT
This figure represents only the spread component.
Exchange fees add another cost to both sides of the transaction.
Actual results can also differ because order book prices may change between the buy and sell executions.
A market with a nominally acceptable spread can therefore still be inefficient for the strategy if fees are high, liquidity is poor or prices move rapidly.
What to Monitor After Launch
The most important metrics for this crypto trading bot are current spread, total crypto trading volume, number of completed cycles, exchange fees, average execution prices, position size and realized PnL.
Position state deserves particular attention because the buy and sell conditions depend directly on position_.available_quantity.
A positive available position activates the sell side.
A nonpositive position can activate the buy side when the spread condition also passes.
Changes in spread behavior can also indicate that market liquidity has shifted. A pair that normally trades with a very tight spread can temporarily become less suitable for frequent execution during periods of volatility or reduced liquidity.
Volume Bot Risk Considerations
The Volume Bot automates execution according to predefined formulas. Profitability is not part of the entry condition.
The strategy can generate costs through spread crossing, exchange fees and adverse price movement between the buy and sell legs.
Futures markets also introduce leverage and liquidation risk. Position size, margin mode and leverage should therefore be reviewed together with the preset parameters.
A conservative first configuration can use smaller order sizes, an appropriate spread limit and controlled leverage while the user observes how the crypto trading bot behaves on the selected market.
Final Thoughts
The Futures | OneWay Mode | Volume Bot is one of the simpler Origami Tech presets to understand because its core logic is transparent.
It reads the current position, buys using the best ask, sells using the best bid, limits buy execution according to the current spread and waits 25 seconds between cycles.
The default settings use approximately 12 units of quote currency per buy and a 0.2% maximum spread.
The most practical parameters to adjust are amount_buy, spread_limit and sleep_after_second, because they directly affect order size, acceptable market conditions and execution frequency.
More extensive changes to price_buy, price_sell, amount_sell or the position conditions alter the underlying crypto bot trading strategy and should be treated as strategy modifications rather than simple parameter tuning.
Trade Smarter with Origami Tech
Take your crypto trading to the next level with our powerful automated trading terminal. Maximize profits, minimize risks, and stay ahead of the market 24/7.




.jpeg)
