Order status

ZK2689
This is how I am placing an order:
Dictionary sellResponse = kite.PlaceOrder(
Exchange: "NSE",
TradingSymbol: "ACC",
TransactionType: Constants.TRANSACTION_TYPE_SELL,
Quantity: 1,
OrderType: Constants.ORDER_TYPE_MARKET,
Product: Constants.PRODUCT_MIS
);
And this is how I am retrieving the order info:
List orderinfo1 = kite.GetOrderHistory(sellResponse["data"]["order_id"]);

Sometimes while retrieving the order info I get exemptions that says order id not found while other times it works fine. When it works fine, I am unable to get the correct order status, it always states "PUT ORDER REQ RECEIVED" and the Avg.price would be 0, even though the website will show the order as "Complete" with correct Avg.price. Why am I not getting the correct order status and avg.price?
  • shobhitbaweja
    same happened with me.. market is closed... order is completed and kite.GetOrderHistory still showing me "PUT ORDER REQ RECEIVED"
  • sujith
    sujith edited March 2018
    An order info/ order history is not one entry, it is the status log of an order in the system. You can check out more details here.
  • shobhitbaweja
    Now the last status of the order would be
    List orderinfo = kite.GetOrderHistory("IDHERE");
    string myOrderStatus = Utils.JsonSerialize(orderinfo[orderinfo.Count-1]);

    worked for me, Thanks Sujith, it must have skipped my mind
  • ZK2689
    Thanks @sujith and @shobhitbaweja for clearing the doubt regarding the Order status, please also clear the air around the odd exemptions that I receive.

    Thanks again!!!
Sign In or Register to comment.