Open ananthu765 opened 5 months ago
VTT Order placed successfully but not executed at condition.
script_data = client.query_scrips("N","D","BANKNIFTY",str(StrikeRate),option_type,"2024-04-30").to_dict()
Symbol = f"BANKNIFTY {str(expiry_date)} {option_type} {StrikeRate}.00"
Request = client.vtt_order('P', Exch="N", ExchType="D", ScripCode=49578, InitialLimitPrice = 121, StopLossLimitPrice =110, InitialTriggerPrice = 120, StopLossTriggerPrice =111, ProfitLimitPrice = 130, ProfitTriggerPrice =129, Quantity = 15, BuySell="Buy", MatchingCondition="GT",Symbol = Symbol) VTT 12:51:12 | Success
Symbol Out[128]: 'BANKNIFTY 30 Apr 2024 CE 49300.00'
Request Out[129]: {'Message': 'Success', 'Status': 0, 'VTTOrderId': 'XXXXX', 'statusDescription': None}
When the LTP goes upto 124. still my order ins in pending state.
Description
VTT Order placed successfully but not executed at condition.
What I Did
script_data = client.query_scrips("N","D","BANKNIFTY",str(StrikeRate),option_type,"2024-04-30").to_dict()
Symbol = f"BANKNIFTY {str(expiry_date)} {option_type} {StrikeRate}.00"
Request = client.vtt_order('P', Exch="N", ExchType="D", ScripCode=49578, InitialLimitPrice = 121, StopLossLimitPrice =110, InitialTriggerPrice = 120, StopLossTriggerPrice =111, ProfitLimitPrice = 130, ProfitTriggerPrice =129, Quantity = 15, BuySell="Buy", MatchingCondition="GT",Symbol = Symbol) VTT 12:51:12 | Success
Symbol Out[128]: 'BANKNIFTY 30 Apr 2024 CE 49300.00'
Request Out[129]: {'Message': 'Success', 'Status': 0, 'VTTOrderId': 'XXXXX', 'statusDescription': None}
When the LTP goes upto 124. still my order ins in pending state.