Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Native error='Order Canceled - reason:Contract is not supported. (202)',

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Native error='Order Canceled - reason:Contract is not supported. (202)',

    Hi,

    I am receiving a following order canceled error msg in the log indicating that the contract is not supported. Any idea why this is happening?

    Working fine:

    3/18/2010 1:20:47 PM,Order,Order='142445525/DUxxxx' Name='short 1a' New State=Working Instrument='ES 06-10' Action=SellShort Limit price=1162 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='',
    3/18/2010 1:20:42 PM,Order,Order='142445525/DUxxxx' Name='short 1a' New State=Accepted Instrument='ES 06-10' Action=SellShort Limit price=1162 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='',
    3/18/2010 12:54:56 PM,Order,Order='142445525/DUxxxx' Name='short 1a' New State=Working Instrument='ES 06-10' Action=SellShort Limit price=1162 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='',

    Canceled here:

    3/18/2010 2:50:54 PM,Order,Order='142445525/DUxxxx' Name='short 1a' New State=Cancelled Instrument='ES 06-10' Action=SellShort Limit price=1162 Stop price=0 Quantity=1 Type=Limit Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason:Contract is not supported. (202)',

    Thanks,

    -Steve

    #2
    Steve, perhaps a limitation of the used paper account? I would suggest clarifying with IB support why you get this native error returned.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I am having the same kind of error too:

      7/15/2016 11:19:54 AM|1|32|Order='512293967/U1623914' Name='Stop1' New state=Cancelled Instrument='ES 09-16' Action=Buy Limit price=0 Stop price=2158 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error='Order Canceled - reason: (202)'

      After the target 1 is filled, strategy will cancel the stop 1. stop 1 and target 1 doesn't have the same OCO id's so once the target 1 is filled or cancelled then strategy is coded to cancel the stop 1 too and vice versa. Strategy doesn't use the same OCO because IB will reject it and has this error 402. Can someone help me on this?

      For the record, I have checked first the state of the order before cancelling it. This code I used for

      if (shortTarget1 != null && shortTarget1.OrderId == execution.Order.OrderId)
      {
      if (execution.Order.OrderState == OrderState.Filled)
      {
      if(shortStop1!= null && (shortStop1.OrderState == OrderState.Working || shortStop1.OrderState == OrderState.Accepted))
      {
      CancelOrder(shortStop1)
      }

      shortTarget1 = null;
      }
      }
      Last edited by luxurious_04; 07-15-2016, 10:51 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mizzouman1, Today, 07:35 AM
      0 responses
      4 views
      0 likes
      Last Post Mizzouman1  
      Started by i019945nj, 12-14-2023, 06:41 AM
      6 responses
      66 views
      0 likes
      Last Post i019945nj  
      Started by aa731, Today, 02:54 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by BarzTrading, Today, 07:25 AM
      0 responses
      3 views
      0 likes
      Last Post BarzTrading  
      Started by ruudawakening, Today, 12:58 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X