Skip to main content

Overview

Ekiden supports the following advanced order features:
  • Take Profit / Stop Loss (TP/SL) using the tpsl object attached to an entry order.
  • Conditional orders using the trigger object.
  • Reduce-only orders using the reduce_only flag to prevent increasing an existing position.

TP/SL

The tpsl object configures Take Profit and Stop Loss for an entry order.

Modes

The mode field supports the following values:

TP/SL Configuration

The take_profit and stop_loss fields support both Market and Limit configurations.

Trigger

Conditional orders are configured using the trigger object.

Reduce-only

Set
to ensure that an order only reduces or closes an existing position.

Example Request

Notes

  • Market TP/SL configurations require trigger_by and trigger_price.
  • Limit TP/SL configurations require limit_price, trigger_by, and trigger_price.
  • trigger_by supports LastPrice, IndexPrice, and MarkPrice.
  • All price values (trigger_price and limit_price) are represented as strings.