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

Sell Orders Count

The parameter responsible for the number of sell orders placed.

PreviousBuy Orders CountNextExecute Price

Last updated 6 months ago

sell_orders_count [integer | formula -> [integer]]

Non-negative number of side=’’ orders to place. Accepts values of integer and decimal types. It is possible to use formula as value. Supports if-else logic. When using float values, they are rounded down to the nearest whole number.

Example:

2 sell orders will be placed.

"sell_orders_count": "2"


5 sell orders will be placed if the current total base token group balance exceeds 5000.

"sell_orders_count": "5 if ('').current.total > 5000 else 0"

5 if group_balance ('base').current.total > 5000 else 0

5 sell orders will be placed if the current total counter token balance less than 5000.

"sell_orders_count": "5 if ('counter').total < 5000 else 0"

5 if balance('counter').total < 5000 else 0

A sell order will be placed if the current total counter token group balance is lower than the starting one and the first bid price is higher than the fair price, which is calculated based on the ratio of the differences in the starting and current balances of the base token and counter token.

"sell_orders_count": "1 if ().bid[0].price > (('').current.total -('').start.total)/(('').start.total -('').current.total) and ('').start.total > ('').current.total else 0"

1 if orderbook().bid[0].price > (group_balance('base').current.total - group_balance('base').start.total) / (group_balance('counter').start.total - group_balance('counter').current.total) and group_balance('counter').start.total > group_balance('counter').current.total else 0

Random number of sell orders will be placed in range [0, 10], rounded down.

"sell_orders_count": "() * 10"

random() * 10
sell
group_balance
balance
orderbook
group_balance
base
group_balance
base
group_balance
counter
group_balance
counter
group_balance
counter
group_balance
counter
random
base