While placing order Bank Nifty option order of quantity 1250 using iceberg as a variety of order getting below error. '`iceberg_legs` should be between 2 and 10.'
iceberg_legs: Total number of legs for iceberg order type (number of legs per Iceberg should be between 2 and 10) iceberg_quantity: Split quantity for each iceberg leg order (quantity/iceberg_legs)
how to handle the case where iceberg quantity is not multiple of lots ie (quantity/iceberg_legs) is not an integer or multiple of ot size. Eg 2025 qty or 81 lots in BankNifty Options. what to input as iceberg_quantity?
To determine the number of legs for iceberg orders with a value between 2 and 10, you may use the rounded-off integer as 'iceberg_legs', and use quantity as total(here 2025), the last legs will be placed with the left-out quantity.
Thank you for the response. 1) So you mean that the 1st leg represents the complete iceberg order. Would the status of this order id represent status of complete iceberg order? 2) The article just explains iceberg order. It does not tell how to update quantity using python API please help with that.
@pseudo, I think it is better you place an iceberg order on Kite web and see then only you will have a clear picture about the behavior. One can't modify the total quantity of an iceberg order. You will have to cancel the second or subsequent or first leg pending order and place a fresh iceberg order.
I have use it on web multiple times, however app behavior are often slightly different. Thank you for clarification on order modification. For this I need to track the order id of subsequent legs. How do I track all the legs of the order for status, modification, cancellation etc, using Python API. Please help.
Go through this thread to know more.
Also check api new calls
iceberg_legs: Total number of legs for iceberg order type (number of legs per Iceberg should be between 2 and 10)
iceberg_quantity: Split quantity for each iceberg leg order (quantity/iceberg_legs)
variety:iceberg
andquantity:total_quantity
. You can modify iceberg quantity, only if the main leg is pending. This article here explains more.1) So you mean that the 1st leg represents the complete iceberg order. Would the status of this order id represent status of complete iceberg order?
2) The article just explains iceberg order. It does not tell how to update quantity using python API please help with that.
I think it is better you place an iceberg order on Kite web and see then only you will have a clear picture about the behavior.
One can't modify the total quantity of an iceberg order. You will have to cancel the second or subsequent or first leg pending order and place a fresh iceberg order.
How do I track all the legs of the order for status, modification, cancellation etc, using Python API. Please help.