not able to trap orders status

anupama
i am writing the following code to trap the ststus of my order:
Dictionary response = new Dictionary();
response = kite.PlaceOrder(
Exchange: exchange,
TradingSymbol: scriptName,
TransactionType: Constants.TRANSACTION_TYPE_BUY,
Quantity: quantity,
Price: 270,
//Price: 156.5000m,
OrderType: Constants.ORDER_TYPE_LIMIT,
Product: Product
);
console.writeln(response["status"]

the aove code prints the status as "Success" while my order book shows the order as "REJECTED" . kindly help to trap the correct status.
  • rakeshr
    You can go through the API response structure here. A successful response structure will return the status key with the value success.
    You can go through the order placement response structure here.
  • anupama
    Thanks for your reply. I already get SUCCESS as response for Order Placement status. What I am trying to trap is the Execution status, ie, OPEN, COMPLETE, CANCELLED, or REJECTED after order placement is SUCCESS. I am unable to get these.. can you please support? Thanks.
  • rakeshr
    What I am trying to trap is the Execution status, ie, OPEN, COMPLETE, CANCELLED, or REJECTED after order placement is SUCCESS.
    You will have to get these order statuses from the orderbook.
Sign In or Register to comment.