Order placement error

Hi, I am placing order using API and getting error.

Input

ord_symbol = ‘NSE:NIFTY24MARFUT’

quant = 50

order_type = 1

transaction_type = -1

product_type = ‘MARGIN’

limit_price = 22014.95

stop_price = 0.0

	order_id = acc_info['fyers'].place_order( 

		data = {

			"symbol":ord_symbol, 

			"qty":quant,  # quantity

			"type":order_type,

			"side":transaction_type,

			"productType":product_type,

			"limitPrice":float(limit_price),  # price

			"stopPrice":float(stop_price),  # trigger_price

			"disclosedQty":0,  # disclosed_quantity

			"validity":"DAY",  # duration

			"offlineOrder":"False", 

			"stopLoss":0.0, # stop_loss

			"takeProfit":0.0 # square_off

			}

		)

Output

{‘code’: -50, ‘message’: ‘Invalid input’, ‘s’: ‘error’}

Can you please let me know what is the issue here? I have raised “1384279” ticket as well.

@WWhYB2qrsx

Hey @arindam_ghosh

Could you please DM the complete code you’re using and the Client ID used for order placement .

Hi @WWhYB2qrsx , please check your DM now. Thanks.

Hi @WWhYB2qrsx , any update on this please? I am stuck now.

Hey @arindam_ghosh

The offlineOrder order should not be mentioned in string ,In the code offlineorder is a string , please make it boolean , it should work

Example : “offlineOrder”:False, this should work

Thanks, it works now. Is this a recent change?