Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order.Token

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

    Order.Token

    In Ninja Trader 7 , IOrder has a definition for Token (ScreenShot 1).But if we use the same strategy in Ninja Trader 8, the following error will display.

    NinjaTrader.Cbi.Order’ does not contain a definition for ‘Token’ and no extension method ‘Token’ accepting a first argument of type ‘NinjaTrader.Cbi.Order’ could be found(are you missing a using directive or an assembly reference?)

    So which definition is used in Ninja Trader 8 instead of Token ?
    Attached Files

    #2
    Hello,

    You can reference Order.OrderId to get a string representing an order ID sent from the broker. If you are looking for a local token, then it looks like Order.Id may be the way to go. However, after testing on my end, it looks like Order.Id may not be fully implemented at this time, but feel free to test it out.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Token

      Hello,


      Thanks for the Reply..lets try with this id...

      Comment


        #4
        rmk, I've got a clarification for you on this question. Using a token is actually no longer necessary in NinjaTrader 8, because the Order object is not contained in a wrapper. Now you can directly compare the Order object in question to the one you created upon submitting the order, so there is no need for that extra step.
        Dave I.NinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        673 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        578 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X