OpenApi-5p / py5paisa

Official Python SDK for 5paisa APIs natively written in VB .NET
https://5paisa.github.io
89 stars 68 forks source link

VTT Order placed successfully but not executed at condition. #292

Open ananthu765 opened 5 months ago

ananthu765 commented 5 months ago

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.

Capture