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
  • Market Data
  • Balances and Exchange info
  • Calculations
  • Other
  1. Function

Functions

Functions that can be called inside the grid parameters.

Market Data

The current market price of the latest traid on the market.

Calculates the volume-weighted average.

The amount of basic tokens up to a certain price.


Balances and Exchange info


Calculations

Compute the arithmetic mean (average) of the given list elements.

Compute the median of the given list elements.

Returns max value of the given list elements.

Returns min value of the given list elements.

Calculates the exponent value.

Returns the absolute value of the given number.

Calculates the value of the natural logarithm.

Returns the number of the given list elements.

Random decimal value in range [0, 1].

Sum of the given list elements.


Other

Used to cache the results of calculating the cached_value formula for the ttl time in seconds.

Drop decimal(Nan) of the given list elements.

True if input Nan and False if input not Nan.

PreviousIs Buy FirstNextTicker

Last updated 5 months ago

Orderbook from the market in the structure.

Market candlesticks in the structure.

Self orders in the structure.

Exchange information in structure.

Token balance of certain exchange in structure.

Saved token balance of certain exchange in structure.

The sum of the token balances from all exchanges in the group in structure.

ticker
orderbook
Orderbook
candles
Candle
own
Orderbook
vwap
amount_before_price
amount_threshold_index
symbol
Symbol
balance
Balance
saved_balance
Balance
group_balance
Group Balace
mean
median
max
min
exp
abs
logn
count
random
sum
cached
remove_nan
is_nan
var