Error "YEL: Group combination not found" For Multileg order

Hi Team,

I tried to create a multileg order with very simple config. 2 Stikes ITM Buy and 2 Strikes OTM Sell. This is a very simple requirement. I am getting an error in API that 'YEL: Group combination not found'. Upon investigation i find these groups as S2 and S3. Infact these groups add no meaning or value to me. These are not calender spreads. Same expiry near ATM strikes so why this wiered restriction of not in same groups unlike in trading UI or in Zerodha are upstox apis? Waiting for a logical answer or explanation from the team.

{'orderTag': 'jwscnbohug', 'productType': 'INTRADAY', 'offlineOrder': False, 'orderType': '2L', 'validity': 'IOC', 'legs': {'leg1': {'symbol': 'NSE:NIFTY24O1025350PE', 'qty': 25, 'side': 1, 'type': 1, 'limitPrice': 133.7}, 'leg2': {'symbol': 'NSE:NIFTY24O1025550PE', 'qty': 25, 'side': -1, 'type': 1, 'limitPrice': 236.3}}}

{'code': -99, 'message': 'YEL: Group combination not found', 's': 'error', 'id': '24100400306567'}

2 replies