I posted one issue last month mentioning how I get errors via API while putting market orders on NaturalGas commodity on every expiry day since last few months.
Todays is an expiry day and the same issue has occurred again. Can you please do something about it.
Last Month Post:
https://fyers.in/community/t/issue-in-naturalgas-on-every-expiry-day-via-api/21726
Latest Log details:
(I’m using same symbol and code and it doesn’t fail but fails every time on expiry day)
2025-03-26 17:20:30,017 - NaturalGas_2025-03-26 - INFO - Attempting to place market order: {‘symbol’: ‘MCX:NATURALGAS25MARFUT’, ‘qty’: 1, ‘type’: 2, ‘side’: 1, ‘productType’: ‘MARGIN’, ‘limitPrice’: 0, ‘stopPrice’: 0, ‘validity’: ‘DAY’, ‘disclosedQty’: 0, ‘offlineOrder’: False, ‘stopLoss’: 0, ‘takeProfit’: 0}
2025-03-26 17:20:30,256 - NaturalGas_2025-03-26 - INFO - Order response received: {‘code’: -50, ‘message’: ‘Invalid input’, ‘s’: ‘error’}
2025-03-26 17:20:30,256 - NaturalGas_2025-03-26 - WARNING - Order status not complete. Status: error, Code: -50
2025-03-26 17:20:30,256 - NaturalGas_2025-03-26 - WARNING - Retrying to place market order. Attempt 1
2025-03-26 17:20:30,478 - NaturalGas_2025-03-26 - INFO - Retry order response received: {‘code’: -50, ‘message’: ‘Invalid input’, ‘s’: ‘error’}
2025-03-26 17:20:30,486 - NaturalGas_2025-03-26 - WARNING - Order status not complete. Status: error, Code: -50
2025-03-26 17:20:30,486 - NaturalGas_2025-03-26 - WARNING - Retrying to place market order. Attempt 2
2025-03-26 17:20:30,714 - NaturalGas_2025-03-26 - INFO - Retry order response received: {‘code’: -50, ‘message’: ‘Invalid input’, ‘s’: ‘error’}
2025-03-26 17:20:30,714 - NaturalGas_2025-03-26 - WARNING - Order status not complete. Status: error, Code: -50
2025-03-26 17:20:30,714 - NaturalGas_2025-03-26 - WARNING - Retrying to place market order. Attempt 3
2025-03-26 17:20:30,936 - NaturalGas_2025-03-26 - INFO - Retry order response received: {‘code’: -50, ‘message’: ’