[Kite Trade API] What happens when increasing pending quantity of a partially filled order ?

sathishphanikurella
Scenario (Order-ID:230614202369726)
1. Created buy order for ULTRACEMCO23JUN8600CE, LotSize : 100, Quantity : 300 and Price : 51.40
2. Quantity : 300, Filled : 100, Pending : 200, Price : 51.40
3. Now I have modified the order to a lesser price, and have increased quantity to 1000
4. Quantity : 1000, Filled : 200, Pending : 800, Price : 51.20
5. Eventually this order got filled and the next line is how it looks after it got completed
6. Quantity : 1000, Filled : 1000, Pending : 0, Average Price : 50.74

Questions:
1. Kite API allows me to modify quantity and allows me to set a total quantity of 1000 which is greater than initial total quantity of 300. Is this allowed or a bug ?
2. How are the charges calculated ? Case-A: Charged for single order of 1000 qty or Case-B: Charged for 300 qty (initial qty) + 700 (modified qty) ?
3. If I have made quantity and price changes in a single API request, Does it count as one modification or two modifications ?
  • sathishphanikurella
    @sujith @rakeshr
    Hi Sujith and Rakesh,
    Can you please help me out here.
  • sathishphanikurella
    Order-ID : 2300000108571853
    There are different Order ID's like Order ID, Parent Order ID, Exchange Order ID
    This Order ID is what is present in Tradebook. Please help me @sujith @rakeshr
  • sujith
    One can modify order quantity, if it is not executed.
    Brokerage charges are per order and not per trade. Brokerage will be calculated for one order that is 1000 qty.
    Every request is counted and not the number of parameters one changes and one can modify an order up to 25 times post that user will have to cancel order and place it again.
  • sujith
    You will need to user order_id. You can know more about different orderbook response params here.
  • sathishphanikurella
    Got it. Thank You, Sujith.
Sign In or Register to comment.