Paritally Filled Order

Sandeep_Prakash
Once an Order is executed, the
onOrderUpdate(Order order)
gets called, which contains various parameters as below:


public class Order {

@SerializedName("exchange_order_id")
public String exchangeOrderId;
@SerializedName("disclosed_quantity")
public String disclosedQuantity;
@SerializedName("validity")
public String validity;
@SerializedName("tradingsymbol")
public String tradingSymbol;
@SerializedName("variety")
public String orderVariety;
@SerializedName("user_id")
public String userId;
@SerializedName("order_type")
public String orderType;
@SerializedName("trigger_price")
public String triggerPrice;
@SerializedName("status_message")
public String statusMessage;
@SerializedName("price")
public String price;
@SerializedName("status")
public String status;
@SerializedName("product")
public String product;
@SerializedName("placed_by")
public String accountId;
@SerializedName("exchange")
public String exchange;
@SerializedName("order_id")
public String orderId;
@SerializedName("symbol")
public String symbol;
@SerializedName("pending_quantity")
public String pendingQuantity;
@SerializedName("order_timestamp")
public Date orderTimestamp;
@SerializedName("exchange_timestamp")
public Date exchangeTimestamp;
@SerializedName("exchange_update_timestamp")
public Date exchangeUpdateTimestamp;
@SerializedName("average_price")
public String averagePrice;
@SerializedName("transaction_type")
public String transactionType;
@SerializedName("filled_quantity")
public String filledQuantity;
@SerializedName("quantity")
public String quantity;
@SerializedName("parent_order_id")
public String parentOrderId;
@SerializedName("tag")
public String tag;
@SerializedName("guid")
public String guid;
}


My question is regarding the partially executed LIMIT (or SL) order. Lets say I have placed a SL buy order for 1000 quantity of BANKNIFTY options at say Rs. 100. Now in the first go, only 300 quantity gets executed (or bought). In the second go after a few seconds another 500 gets executed. So in the Order update that I receive via Websocket, will have the following values:


// First-Go // Second-Go
public String orderType; // SL // SL
public String averagePrice; // 100.00 // 100.00
public String status; // COMPLETE // COMPLETE
public String filledQuantity; // 300 // 500
public String quantity; // 1000 // 1000
public String pendingQuantity; // 700 // 200


My query is pertaining to the following fields
  1. filledQuantity : Will it be 500 or 800 after the Second-Go?
  2. orderType : Will it be SL or will it be LIMIT (as after triggering an SL it will be a normal LIMIT order)
Lastly, I'm asking this question as I'm not sure as to when I might hit this situation.
This discussion has been closed.