Protocol
Order Types

Take Profit Orders

Atomic on-fill TP placement, chaining with repeat, on-chain DCA ladders

Take Profit Orders

SB Chain supports automated take profit orders triggered on the fill of a parent order, defined in limit_order_create_operation.extensions.on_fill using action type create_take_profit_order_action. The take profit order is placed atomically at fill time, appearing in the same block as the parent fill. No external bot or monitoring is required.

ParameterDescription
fee_asset_idAsset used to pay the network fee for placing the take profit order
spread_percentPrice distance from the fill price at which the take profit order is placed
size_percentPercentage of the filled amount to include in the take profit order
expiration_secondsHow long the take profit order lives on the book (0 = maximum lifetime)
repeatIf true, a new take profit order is created each time the take profit order itself fills

Setting repeat = true creates a self-perpetuating chain — each take profit fill triggers placement of the next at the same spread and size parameters, enabling fully on-chain automated DCA-sell ladders and grid-style strategies with no external infrastructure.