Origami Documentation
User GuideFunction
  • User Guide
    • Create Project
    • Add accounts
    • API Key Creation
      • Hyperliquid
      • Binance
      • Bybit
      • OKX
      • Gate io
      • Mexc
      • HTX
      • Kucoin
      • BingX
      • Bitget
      • BitMart
    • Create Spot Bot
    • Create Futures Bot
    • Create Grid
  • Function
    • Required parameters
      • Buy Orders Count
      • Sell Orders Count
      • Execute Price
      • Execute Volume
    • Base logic
    • Optional parameters
      • Time Between Orders
      • Sleep After Seconds
      • Is Buy First
    • Functions
      • Ticker
      • Orderbook
      • Candles
      • VWAP
      • Amount Before Price
      • Amount Threshold Index
      • Symbol
      • Balance
      • Saved Balance
      • Group Balance
      • Mean
      • Median
      • Max
      • Min
      • Exp
      • Abs
      • Logn
      • Count
      • Random
      • Sum
      • Cached
      • Remove NaN
      • Is NaN
      • Var
    • Technical analysis
      • Relative Strenght Index
      • RSI to price
      • Average True Range
      • Bollinger Bands
      • Donchian Channel
      • Exponential Moving Average
      • Kaufman Efficiency Indicator
      • Kaufman's Adaptive Moving Average
      • Keltner Channels
      • Momentum Breakout Bands
      • Pivot Points
      • Percentage Price Oscillator
      • Percent B
      • Stop-and-Reverse
      • Stochastic Oscillator %K
      • Stochastic RSI
      • True Range
      • Triple Exponential Moving Average Oscillator
      • Volume Adjusted Moving Average
    • Structures
      • Balance
      • GroupBalance
      • Orderbook
      • OrderBookUnit
      • Symbol
      • Candle
    • Shortcuts
      • Base
      • Counter
    • Exchanges list
    • Pre-defined parameters
      • Order Pos
      • Side
Powered by GitBook
On this page
  1. Function
  2. Required parameters

Execute Volume

The parameter that specifies the amount to be placed, denominated in the base token.

PreviousExecute PriceNextBase logic

Last updated 5 months ago

execute_volume [decimal | formula -> [decimal]]

Volume (amount) value for each order in grid, denominated in the base token. It accepts both integer and decimal inputs and allows the use of formulas as values.

It must be borne in mind that when the quantity in the volume parameter changes and in the absence of the parameter, the grid will immediately re-place orders on the exchange, which leads to an increase in the load on the communication channel with the exchange. For correct operation, it is advisable to use the parameter and the function.

It is mandatory to use the function or the parameter when using the function.

Always positive value. Can’t be zero.

Supports the use of the iterable parameter to facilitate the placement of multiple orders.

It is possible to use the parameter, which also supports the use of .

Example:

The order of 2345.95 amount will be placed in the base token.

"execute_volume": "2345.95"


The order will be executed in the amount of 10 divided by the market price of the base token. For example, if the counter token is USDT, then this is equivalent to placing an order of 10 USDT denominated in the base token.

"execute_volume": "10 / ()"

10 / ticker()

The order will be executed in the amount of 100 plus 10 multiplied by the sequence number of the order in the grid, divided by the price of the base token. For example, if the counter token is USDT, then this is equivalent to placing an order of 100 USDT plus 10 USDT multiplied by the ordinal number of the order in the grid, denominated in the base token.

"execute_volume": "(100 + 10 * ()) / "

(100 + 10 * abs(order_pos)) / execute_price

The order will be executed in an amount equal to the size of the first market bid, but not exceeding 100 divided by the price of the executed order. This means that if the counter token is USDT, the order amount will be capped at a value equivalent to 100 USDT, denominated in the base token.

"execute_volume": "(().bid[0].amount,100/)"

min(orderbook().bid[0].amount,100/execute_price)

The order will be executed in an amount equal to the total of all orders up to and including the first own ask order in the market.

"execute_volume": "sum([ask.amount if ask.price <= ().ask[0].price else 0 for ask in ().ask])"

sum([ask.amount if ask.price <= own().ask[0].price else 0 for ask in orderbook().ask])

The order will be executed in the amount of 10% of the current available ETH balance, but not more than 0.2.

"execute_volume": "(('ETH').available * 0.1, 0.2)"

min(balance('ETH').available * 0.1,0.2)
sleep_after_seconds
sleep_after_seconds
cached
cached
sleep_after_seconds
random
order_pos
execute_price
order_pos
ticker
abs
order_pos
execute_price
min
orderbook
execute_price
own
orderbook
min
balance