How to create GTT for option chart on expiry day
-
Hi @admin, Everyone,
I have very interesting situation which thinking how to solve.
I want to create GTT on expiry date of option chart.
As per smart api doc , producttype has to CARRYFORWARD.
So my question is - what value needs to define for timeperiod. I had tried 0(zero) but it is throwing error while GTT creation.
gttCreateParams = { "tradingsymbol": 'BANKNIFTY31AUG2344400PE', "symboltoken": 60484, "exchange": 'NFO', "producttype": "CARRYFORWARD", "transactiontype": 'BUY', "price": 101, "qty": 15, "triggerprice": 100 "timeperiod": 1 } rule_id = obj.gttCreateRule(gttCreateParams)
Any suggestion would be really appreciated.
Thanks in advance!
-
Hi @N51542847
Apologies for delayed response.
Timeperiod of GTT order for the NFO should be given as "Days of expiry contract subtracted with Current date"
Kindly share us the API request and error response if issue still occurs.Thanks & Regards,
SmartAPI team -
@admin , Can you please help on this.