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.