SDK : Query regarding "filled_quantity" field

Hi Team,

I am doing some testing of placing “Limit” orders and, understanding the average price & other details.

I had some observation and wanted to confirm.

Order placed using following body:

{'quantity': 11, 'product': 'D', 'validity': 'DAY', 'price': 85.4, 'tag': 'UPSTOX', 'instrument_token': 'NSE_EQ|INE07T201019', 'order_type': 'LIMIT', 'transaction_type': 'BUY', 'disclosed_quantity': 0, 'trigger_price': 0, 'is_amo': 'false'} 

and the response when the order got fulfilled:

In the below response, you can see that there are two “Open” status blocks and one “Complete” status block (there are few more statuses that I am not concerned about). In one of the open status block, the “filled_quantity” is shown as 11. My doubt is, why the value came as 11 when the order is still “Open”… It make sense that “filled_quantity” value is 11 when the order is “complete” (which is indeed happening).

If this is expected, then please do let me know so that I can cater this scenario in my code.

{'data': [{'average_price': 0.0,
           'disclosed_quantity': 0,
           'exchange': 'NSE',
           'exchange_order_id': None,
           'exchange_timestamp': None,
           'filled_quantity': 0,
           'instrument_token': 'NSE_EQ|INE07T201019',
           'is_amo': False,
           'order_id': '250106025174296',
           'order_request_id': '1',
           'order_timestamp': '2025-01-06 10:16:06',
           'order_type': 'LIMIT',
           'parent_order_id': 'NA',
           'placed_by': None,
           'price': 85.4,
           'product': 'D',
           'quantity': 11,
           'status': 'put order req received',
           'status_message': None,
           'tag': 'UPSTOX',
           'trading_symbol': 'RBA',
           'tradingsymbol': 'RBA',
           'transaction_type': 'BUY',
           'trigger_price': 0.0,
           'validity': 'DAY',
           'variety': None},
          {'average_price': 0.0,
           'disclosed_quantity': 0,
           'exchange': 'NSE',
           'exchange_order_id': None,
           'exchange_timestamp': None,
           'filled_quantity': 0,
           'instrument_token': 'NSE_EQ|INE07T201019',
           'is_amo': False,
           'order_id': '250106025174296',
           'order_request_id': '1',
           'order_timestamp': '2025-01-06 10:16:06',
           'order_type': 'LIMIT',
           'parent_order_id': 'NA',
           'placed_by': None,
           'price': 85.4,
           'product': 'D',
           'quantity': 11,
           'status': 'validation pending',
           'status_message': None,
           'tag': 'UPSTOX',
           'trading_symbol': 'RBA',
           'tradingsymbol': 'RBA',
           'transaction_type': 'BUY',
           'trigger_price': 0.0,
           'validity': 'DAY',
           'variety': None},
          {'average_price': 0.0,
           'disclosed_quantity': 0,
           'exchange': 'NSE',
           'exchange_order_id': None,
           'exchange_timestamp': None,
           'filled_quantity': 0,
           'instrument_token': 'NSE_EQ|INE07T201019',
           'is_amo': False,
           'order_id': '250106025174296',
           'order_request_id': '1',
           'order_timestamp': '2025-01-06 10:16:06',
           'order_type': 'LIMIT',
           'parent_order_id': 'NA',
           'placed_by': None,
           'price': 85.4,
           'product': 'D',
           'quantity': 11,
           'status': 'open pending',
           'status_message': None,
           'tag': 'UPSTOX',
           'trading_symbol': 'RBA',
           'tradingsymbol': 'RBA',
           'transaction_type': 'BUY',
           'trigger_price': 0.0,
           'validity': 'DAY',
           'variety': None},
          {'average_price': 0.0,
           'disclosed_quantity': 0,
           'exchange': 'NSE',
           'exchange_order_id': '1000000015219806',
           'exchange_timestamp': '2025-01-06 10:16:06',
           'filled_quantity': 0,
           'instrument_token': 'NSE_EQ|INE07T201019',
           'is_amo': False,
           'order_id': '250106025174296',
           'order_request_id': '1',
           'order_timestamp': '2025-01-06 10:16:06',
           'order_type': 'LIMIT',
           'parent_order_id': 'NA',
           'placed_by': None,
           'price': 85.4,
           'product': 'D',
           'quantity': 11,
           'status': 'open',
           'status_message': None,
           'tag': 'UPSTOX',
           'trading_symbol': 'RBA',
           'tradingsymbol': 'RBA',
           'transaction_type': 'BUY',
           'trigger_price': 0.0,
           'validity': 'DAY',
           'variety': None},
          {'average_price': 0.0,
           'disclosed_quantity': 0,
           'exchange': 'NSE',
           'exchange_order_id': '1000000015219806',
           'exchange_timestamp': '2025-01-06 10:16:06',
           'filled_quantity': 11,
           'instrument_token': 'NSE_EQ|INE07T201019',
           'is_amo': False,
           'order_id': '250106025174296',
           'order_request_id': '1',
           'order_timestamp': '2025-01-06 10:16:06',
           'order_type': 'LIMIT',
           'parent_order_id': 'NA',
           'placed_by': None,
           'price': 85.4,
           'product': 'D',
           'quantity': 11,
           'status': 'open',
           'status_message': None,
           'tag': 'UPSTOX',
           'trading_symbol': 'RBA',
           'tradingsymbol': 'RBA',
           'transaction_type': 'BUY',
           'trigger_price': 0.0,
           'validity': 'DAY',
           'variety': None},
          {'average_price': 85.4,
           'disclosed_quantity': 0,
           'exchange': 'NSE',
           'exchange_order_id': '1000000015219806',
           'exchange_timestamp': '2025-01-06 10:16:48',
           'filled_quantity': 11,
           'instrument_token': 'NSE_EQ|INE07T201019',
           'is_amo': False,
           'order_id': '250106025174296',
           'order_request_id': '1',
           'order_timestamp': '2025-01-06 10:16:48',
           'order_type': 'LIMIT',
           'parent_order_id': 'NA',
           'placed_by': None,
           'price': 85.4,
           'product': 'D',
           'quantity': 11,
           'status': 'complete',
           'status_message': None,
           'tag': 'UPSTOX',
           'trading_symbol': 'RBA',
           'tradingsymbol': 'RBA',
           'transaction_type': 'BUY',
           'trigger_price': 0.0,
           'validity': 'DAY',
           'variety': None}],
 'status': 'success'}

cc : @Pradeep_Jaiswar @Ketan

Thank you for asking this question. We will verify it with the concerned team and get back to you.