Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecutionUpdate() sometimes not called with OrderState.Filled

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

    OnExecutionUpdate() sometimes not called with OrderState.Filled

    My strategy depends on knowing when an order is filled in OnExecutionUpdate(). Twice today with real Apex/Rithmic accounts, this failed to happen .OnExecutionUpdate was not called with OrderState.Filled. Is this a Rithmic issue? I've spent a lot of time working on this piece of software and it's not encouraging to realize that the sequence of events that are supposed to happen cannot be depended upon. There is no contingency, because obviously there is no way of knowing that OnEx was not called when it should have been.
    Last edited by gbourque; 06-04-2024, 12:39 PM.

    #2
    Hello gbourque,

    When using rithmic it is possible to see out of order events compared to other brokers, rithmic does not have a set order of events like most other brokers. As such we do recommend a specific way of developing strategies that use OnOrderUpdate or OnExecutionUpdate events

    Using the partial order quantity and accumulating a quantity is part of how the sample in the linked forum post works so that would be a correct approach.

    Because the events can happen out of order that can cause Order variables being used to have incorrect states when the OnOrderUpdate or OnExecutionUpdate is called which may cause conditions you use to not work as expected which may be a reason why your logic did not see that event. When working with rithmic and the order/execution events only the passed in values from the override can be used to control logic.

    I would suggest adding a general print at the top of each override so you can see the events that do happen just to confirm you observed the events in general. Beyond that you would need to review the sample in the forum post and make sure the logic you are using is built in a similar way.

    Comment


      #3
      Thanks. I do have print trace messages in the the event methods. That's how I knew OnEx was not being called. I'll check out the example and see it it helps.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X