Getting Error when placing order.
I am getting the below error message when trying to place order. Do anyone faced similar issue earlier and how to fix this issue.
{'status': 'error', 'message': ' is not supported in NFO segment.', 'data': {}}
Below is the script I used to place the order.
sas.place_order(transaction_type = 'BUY',
instrument = sas.get_instrument_for_fno(symbol='NIFTY',
expiry_date=datetime.date(int(2022),int(2),int(24)),
is_fut=False,strike=17400,is_call=False),
quantity = 50,
order_type = 'LIMIT',
product_type = 'D',
price = 420.0,
trigger_price = None,
stop_loss = None,
square_off = None,
trailing_sl = None,
is_amo = False)
@algo2t
Are you trying to buy PE (put) ? Have you tried to change the product_type to different options like M for Margin
Got below exception while placing sell order : sas.place_order( transaction_type = 'Sell', instrument = n_call, quantity = quantity, order_type = 'StopLossLimit', product_type = 'D', price = entry_price, trigger_price = limit_price, stop_loss = None, square_off = None, trailing_sl = None, is_amo = False)
'str' object has no attribute 'value' Any idea how to resolve this ??