Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnMarketDepth()

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

    OnMarketDepth()

    The eventArgs have e.Operation == Operation.Remove, Operation.Update, etc.
    Assuming the current price of a contract is 949.00 and the orderbook shows there is 400 offered at 950.25 and then all of sudden there's 300 offered at 950.25, does that mean that someone has cancelled 100 at 950.25? And is that what Operation.Remove would show? or Update?

    #2
    That would be an update. Operation.Remove is when you completely remove the price from the ladder. Update just updates something already on the ladder. Insert would be to add a price to the ladder. As far as why it would update the price, it could very well mean someone cancelled.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by funk101 View Post
      The eventArgs have e.Operation == Operation.Remove, Operation.Update, etc.
      Assuming the current price of a contract is 949.00 and the orderbook shows there is 400 offered at 950.25 and then all of sudden there's 300 offered at 950.25, does that mean that someone has cancelled 100 at 950.25? And is that what Operation.Remove would show? or Update?
      Getting more technically (as basically the support answer is short).

      * Change can mean:
      - someone cancelled.
      - someone added new orders
      - an order changed in size
      - a trade executed at that price (as: every fill not only fills the order, it also changes the outstanding amount still to be filled, which is shown in the ladder).

      * Remove means:
      - no more price at that point. THis can be because of a move of best bid/ask, as the ladders are not indefinite in depth. So, elements "falling off" the long side (like 11th element on CME, which publishes ticks deep) get removed when the price moves.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      89 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X