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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X