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 Price

The parameter that determines the price of the orders being placed.

PreviousSell Orders CountNextExecute Volume

Last updated 5 months ago

execute_price [decimal | formula -> [decimal]]

The price value for each order in the grid. It accepts both integer and decimal inputs and allows the use of formulas as values. If-else logic is supported. Use the or side to configure buy and sell orders within a single grid.

Always positive value. Can’t be zero.

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

can't be used in execute_price .

Example:

The order will be placed at a price of 2345.95.

"execute_price": "2345.95"


The order will be executed at the current market price.

"execute_price": "()"

ticker()

The order will be placed at the first market bid price.

"execute_price": "().bid[0].price"

orderbook().bid[0].price

The order will be executed at the first ask price.

"execute_price": " ().ask[0].price"

orderbook().ask[0].price

The order will be placed at the arithmetic average of the bid and ask prices for Bybit's ETH-USDT pair.

"execute_price": "(('ETH-USDT','bybit').bid[0].price + ('EVER-USDT','bybit').ask[0].price) / 2"

(orderbook('ETH-USDT','bybit').bid[0].price + orderbook('EVER-USDT','bybit').ask[0].price) / 2

The order will be executed at the current market price if the starting total base matches the current total base. Otherwise, it will be placed at the fair price, determined by the ratio of the differences between the starting and current balances of the base and counter tokens.

"execute_price": "() if ('').current.total == ('').start.total else (('').start.total -('').current.total)/(('').current.total -('').start.total)"

ticker() if group_balance('counter').current.total == group_balance('counter').start.total else (group_balance('base').start.total-group_balance('base').current.total)/(group_balance('counter').current.total-group_balance('counter').start.total)

The orders will be placed at the price of the first market ask for sell orders and the first market bid for buy orders, adjusted by ±0.5%, respectively. Subsequent orders will be placed at increments of 0.5% of the price for each additional order.

"execute_price": "( ().bid[0].price if side==’’ else ().ask[0].price) * (1 + 0.005 *)"

(orderbook().bid[0].price if side==’buy’ else orderbook().ask[0].price) * (1 + 0.005 * order_pos)

Orders will be placed at the price level where the RSI is anticipated to reach 60 on 15-minute candlesticks.

"execute_price": "((’m15’), rsi_expected=60)"

rsi_to_price(candles(’m15’), rsi_expected=60)

Place an order at the average closing price of the most recent 100 fifteen-minute candlesticks.

"execute_price": "([candle.close for candle in ('m15')])"

mean([candle.close for candle in candles('m15')])
buy
sell
order_pos
execute_volume
ticker
orderbook
orderbook
orderbook
orderbook
ticker
group_balance
base
group_balance
base
group_balance
counter
group_balance
counter
group_balance
base
group_balance
base
orderbook
buy
orderbook
order_pos
rsi_to_price
candles
mean
candles