For a valid Instrument order is not placed

dgangwar
Hi Guys,

I got this error today while placing the sell order for my OPEN buy order for closing the trade. Could anyone help me what might have gone wrong or is there any approach I need to follow for order closing a EOD

Instrument : BANKNIFTY2280437300CE
Client : python v4.1.0
Error : The instrument you are placing an order for has either expired or does not exist.

Open Order Details :

Position API Respose :
[{'tradingsymbol': 'BANKNIFTY2280437300CE', 'exchange': 'NFO', 'instrument_token': 8975874, 'product': 'MIS', 'quantity': 25, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 471.85, 'close_price': 0, 'last_price': 478.65, 'value': -11796.25, 'pnl': 170, 'm2m': 170, 'unrealised': 170, 'realised': 0, 'buy_quantity': 25, 'buy_price': 471.85, 'buy_value': 11796.25, 'buy_m2m': 11796.25, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 25, 'day_buy_price': 471.85, 'day_buy_value': 11796.25, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}]

Order API Response:
{'placed_by': 'JZ9146', 'order_id': '220729202478363', 'exchange_order_id': '1600000070615964', 'parent_order_id': None, 'status': 'COMPLETE', 'status_message': None, 'status_message_raw': None, 'order_timestamp': datetime.datetime(2022, 7, 29, 15, 15, 2), 'exchange_update_timestamp': '2022-07-29 15:15:02', 'exchange_timestamp': datetime.datetime(2022, 7, 29, 15, 15, 2), 'variety': 'regular', 'modified': False, 'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2280437300CE', 'instrument_token': 8975874, 'order_type': 'LIMIT', 'transaction_type': 'BUY', 'validity': 'DAY', 'validity_ttl': 0, 'product': 'MIS', 'quantity': 25, 'disclosed_quantity': 0, 'price': 490.5, 'trigger_price': 0, 'average_price': 471.85, 'filled_quantity': 25, 'pending_quantity': 0, 'cancelled_quantity': 0, 'market_protection': 0, 'meta': {}, 'tag': None, 'guid': '25142X9XqGy0ikVZQE'}


Error happend while creating order for :- BANKNIFTY2280437300CE
Error is :- The instrument you are placing an order for has either expired or does not exist.
  • rakeshr
    I got this error today while placing the sell order for my OPEN buy order for closing the trade
    Were you trying to place an order post the auto-RMS square-off?
    Can you paste debug log for this order request?
  • dgangwar
    dgangwar edited August 2022
    @rakeshr Thanks for the reply. I am trying to close the buy option position(BankNifty) at 3:20PM as I understand that is within the square-off time(3:25 PM). I am not capturing any debug logs yet but will try tomorrow.
  • dgangwar
    @rakeshr The issue was with the Exchange type I was not using NFO for option order type.
Sign In or Register to comment.