Hi Team,
May I know the status of Bracket Orders with Trailing stop loss using api,
GTT needs a gap of 0.25% between LTP and entry price, can we add Stoploss and target in MIS orders using GTT orders.
Hi Team,
May I know the status of Bracket Orders with Trailing stop loss using api,
GTT needs a gap of 0.25% between LTP and entry price, can we add Stoploss and target in MIS orders using GTT orders.
Hi @athma_prathisti
Trailing stop loss is now available in GTT orders for more information please check out this announcement GTT TSL Order API | Upstox Developer API
Yes you can do this.
Thanks!
Hi @Ketan
But the order id that comes from placing GTT order has GTT prefix, I think placing order via MIS do not have that Id so not sure how would you link MIS with GTT.
Could you please give an example of how to link MIS and GTT order
Thanks & Regards
@athma_prathisti
MIS (Margin Intraday Square-off) GTT orders also have a āGTTā prefix. Hereās an example payload:
{
"type": "MULTIPLE",
"quantity": 1,
"product": "I",
"rules": [
{
"strategy": "ENTRY",
"trigger_type": "IMMEDIATE",
"trigger_price": 6
},
{
"strategy": "STOPLOSS",
"trigger_type": "IMMEDIATE",
"trigger_price": 5,
"trailing_gap": 0.2
},
{
"strategy": "TARGET",
"trigger_type": "IMMEDIATE",
"trigger_price":10
}
],
"instrument_token": "NSE_EQ|INE669E01016",
"transaction_type": "BUY"
}
and the sample response for it
{
"status": "success",
"data": {
"gtt_order_ids": [
"GTT-C25110800108878"
]
},
"metadata": {
"latency": 47
}
}
@athma_prathisti
Great Thanks
I will test it in case of any issues will reach out.
Can you please reply on this one as well
Can the latest prices of the stocks be reflected on the same day - General - Upstox Community
@athma_prathisti
I have replied to the above thread.
Thanks!