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.
| Parameter | Description |
|---|---|
| fee_asset_id | Asset used to pay the network fee for placing the take profit order |
| spread_percent | Price distance from the fill price at which the take profit order is placed |
| size_percent | Percentage of the filled amount to include in the take profit order |
| expiration_seconds | How long the take profit order lives on the book (0 = maximum lifetime) |
| repeat | If 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.