InputException: Invalid `iceberg_quantity`.

DRTradingPvtLtd
Hi I am placing correct quantity but the response is negetive

kite.place_order(tradingsymbol='BANKNIFTY22N1742100CE',
variety=kite.VARIETY_ICEBERG ,
exchange=kite.EXCHANGE_NFO,
transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=750,
order_type=kite.ORDER_TYPE_MARKET,
product=kite.PRODUCT_MIS,
price=None,
validity=None,
disclosed_quantity=None,
trigger_price=None,
squareoff=None,
stoploss=None,
trailing_stoploss=None,
tag=None,
iceberg_legs=2,
iceberg_quantity=750)



---------------------------------------------------------------------------
InputException Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_4172/2900165845.py in
----> 1 kite.place_order(tradingsymbol='BANKNIFTY22N1742100CE',
2 variety=kite.VARIETY_ICEBERG ,
3 exchange=kite.EXCHANGE_NFO,
4 transaction_type=kite.TRANSACTION_TYPE_BUY,
5 quantity=750,

~\anaconda3\lib\site-packages\kiteconnect\connect.py in place_order(self, variety, exchange, tradingsymbol, transaction_type, quantity, product, order_type, price, validity, validity_ttl, disclosed_quantity, trigger_price, squareoff, stoploss, trailing_stoploss, iceberg_legs, iceberg_quantity, tag)
358 del(params[k])
359
--> 360 return self._post("order.place",
361 url_args={"variety": variety},
362 params=params)["order_id"]

~\anaconda3\lib\site-packages\kiteconnect\connect.py in _post(self, route, url_args, params, is_json, query_params)
844 def _post(self, route, url_args=None, params=None, is_json=False, query_params=None):
845 """Alias for sending a POST request."""
--> 846 return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params)
847
848 def _put(self, route, url_args=None, params=None, is_json=False, query_params=None):

~\anaconda3\lib\site-packages\kiteconnect\connect.py in _request(self, route, method, url_args, params, is_json, query_params)
916 # native Kite errors
917 exp = getattr(ex, data.get("error_type"), ex.GeneralException)
--> 918 raise exp(data["message"], code=r.status_code)
919
920 return data["data"]

InputException: Invalid `iceberg_quantity`.
Sign In or Register to comment.