Overview
Ekiden supports the following advanced order features:- Take Profit / Stop Loss (TP/SL) using the
tpslobject attached to an entry order. - Conditional orders using the
triggerobject. - Reduce-only orders using the
reduce_onlyflag to prevent increasing an existing position.
TP/SL
Thetpsl object configures Take Profit and Stop Loss for an entry order.
Modes
Themode field supports the following values:
TP/SL Configuration
Thetake_profit and stop_loss fields support both Market and Limit configurations.
Trigger
Conditional orders are configured using thetrigger object.
Reduce-only
SetExample Request
Notes
- Market TP/SL configurations require
trigger_byandtrigger_price. - Limit TP/SL configurations require
limit_price,trigger_by, andtrigger_price. trigger_bysupportsLastPrice,IndexPrice, andMarkPrice.- All price values (
trigger_priceandlimit_price) are represented as strings.