Hi Team,
I am using the SDK v2 version in my code. I would like to place the SL order programmatically when I place the new purchase order.
I was reading through the documentation (upstox-python/docs/PlaceOrderRequest.md at master · upstox/upstox-python · GitHub) and it says that :
**order_type** Type of order. It can be one of the following MARKET refers to market order LIMIT refers to Limit Order SL refers to Stop Loss Limit SL-M refers to Stop Loss Market
How do I use it?
As of now, when I place the order, I pass “MARKET” value for Order_Type.
- Do I need to again call the same method with now Ordertype == SL as the field for the same script?
- How will system know this SL is for which order?
- If I have two orders for script one as CNC and one has MIS, how will system know this SL is for which?
Thanks in advance.
Regards,
Rahul Mittal
FYI : @Pradeep_Jaiswar , @AbhishekRathore