I'm geeting the problem on order placement using dhan api

I’m placing the normal order using the dhan api and quantity is 2 still it gives me error that
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ‘Insufficient Holding Quantity’}, ‘data’: ‘’}
how can i resolve this?
@Dhan_Cares

Pls share your request structure JSON.

print(“Dhan Broker Order Placement Started line 27”)
logger.info(f"Dhan Order Placement Started!")
order_id=dhan_obj.place_order(
tag=‘’,
transaction_type=transaction_type,
exchange_segment=exchange,
product_type=product,
order_type=dhan_obj.MARKET,
validity=‘DAY’,
security_id=36963,
quantity=quantity,
disclosed_quantity=0,
price=0.0,
trigger_price=0.0,
after_market_order=False,
amo_time=‘OPEN’,
bo_profit_value=0,
bo_stop_loss_Value=0,
drv_expiry_date=None,
drv_options_type=None,
drv_strike_price=None
)
logger.info(f’Order has been placed successfully in dhan {order_id}')

this is my python wrapper code for the order placing and here the quantity is 2 that multiple of the lot size of banknifty

@Jai1

Please ensure that you are passing correct values for the marked fields. Also, security ID needs to be a string.

image

Please refer to the sample structure shown here

Yes I have checked that and i’m passing the right value which i have stored in variable then i have use that variables
But sometimes it gives the error the Insufficient Holding Quantity.

Pls share what your are storing in the variables too. Also did you enclose the security id in quotes ?

You may consider checking your request string in sandbox environment to validate everything is correct with that.