OptionalsubmittedBase price the grid is anchored to
OptionalupperUpper price bound
OptionallowerLower price bound
OptionaltriggerTrigger price type (Spread / Percent)
OptionaltriggerUpward trigger spread (absolute)
OptionaltriggerDownward trigger spread (absolute)
OptionaltriggerUpward trigger percent
OptionaltriggerDownward trigger percent
OptionalmultipleWhether a single grid level may trigger multiple times
OptionaltimeTime in force (Day / GoodTilCanceled / GoodTilDate)
OptionalupperQuantity handled when the upper bound is reached
OptionallowerQuantity handled when the lower bound is reached
OptionalexpireExpiry time (unix seconds), used with GTD
OptionalupperAction when the upper bound is reached (Ignore / CloseAtLast)
OptionallowerAction when the lower bound is reached (Ignore / CloseAtLast)
OptionaltriggerSell-side order-book depth (-5..5, 0 = use grid_order_type_up)
OptionaltriggerBuy-side order-book depth (-5..5, 0 = use grid_order_type_down)
OptionaltriggerQuantity per trigger
OptionalsupportWhether short selling is allowed
OptionalrthRegular trading hours flag (0 / 1 / 2)
OptionalgridSell-side order type when depth is 0 (GMO / GLO / GTG)
OptionalgridBuy-side order type when depth is 0 (GMO / GLO / GTG)
Grid trading rule — parameters for submit / replace.
Prices and quantities are decimals; trigger price type, time in force and limit events are named enums.