IB API - orderStatus() can't find order type and order limit price

Discussion in 'Automated Trading' started by dangqiwu, Nov 17, 2013.

  1. dangqiwu

    dangqiwu

    I read through the API reference of orderStatus() but can't find the variable of order type and order price. I must miss something.

    Anyone helps?
     
  2. vicirek

    vicirek

    Order status is a callback after you submit your order and it is identified by order id (programmer keeps track of order id).

    It returns average fill price and last filled price, order status, quantity filled, remaining etc.

    Programmer should keep track what was the initial order type, quantity, limit price etc. by using order id and then match received information against submitted order.

    Very important: OrderStatus() may sent multiple messages with identical information for the same order id and this has to be handled by the program
     
  3. vicirek

    vicirek

    One more thing about orderStatus(): please check all API release notes because new additions have been made to IB String order status like apicanceled etc. (check exact spelling); it is not shown in current API guide.