Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Partial Fill Question

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

    Partial Fill Question

    Hi,

    I want to handle a scenario of partial fills.
    The scenario is as follow:
    1. Send an order for 10 contracts. Time 0.
    2. 2 contracts get fill at time 1.
    3. 3 more contracts gets fill at time 2.
    4. 5 more contracts gets fill at time 3.

    My question is when I check the IOrder.Fill at each time point do I get the aggregated fill or the delta? e.g. At step 3(time 2) does IOrder.Fill == 3 or IOrder.Fill == 5?

    I want to be able to get the delta fill plus AvgFill and the aggregated fill plus AvgFill at each IOrder event, how can I do it?

    I can think on a programmatic way to do it but because it is hard to simulate such events I wanted to know if you have a tested solution for this.

    Thanks!
    Last edited by freewind; 08-04-2013, 12:31 AM.

    #2
    Hello freewind,

    Thank you for your post.

    The IOrder object method .Filled will pull the total amount filled for the IOrder object not the value of how much was filled in the last partial fill. So in this case you will need to create your own logic to pull the average fill and per OnOrderUpdate() fill or "delta" fill.

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, Yesterday, 01:02 PM
    0 responses
    23 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    16 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    160 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    94 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    147 views
    2 likes
    Last Post CaptainJack  
    Working...
    X