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?
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
Thanks @sujith and @shobhitbaweja for clearing the doubt regarding the Order status, please also clear the air around the odd exemptions that I receive.
List orderinfo = kite.GetOrderHistory("IDHERE");
string myOrderStatus = Utils.JsonSerialize(orderinfo[orderinfo.Count-1]);
worked for me, Thanks Sujith, it must have skipped my mind
Thanks again!!!