• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Execution timestamp of the "Unspecified" kind

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

    Execution timestamp of the "Unspecified" kind

    Hi,

    this code fragement
    Code:
    private void OnExecutionUpdate(object sender, ExecutionEventArgs e)
    {
        Print(e.Time.Kind);
    }
    prints "Unspecified".

    For connecting to external tools, I'd prefer it if the execution timestamp was of the DateTimeKind.Local or DateTimeKind.Utc kind, to make sure time zone conversions work as expected and ISO 8601 date representations can contain the correct time offset.

    I am aware I can work around this using DateTime.SpecifyKind().

    Could this be fixed, please?

    Thank you,
    Stefan.
    Last edited by gurko; 11-22-2017, 04:32 AM.

    #2
    Hello gurko,

    Thank you for your post.

    While the Time.Kind is not specified in the executions I can confirm the executions are marked to the Local PC time.

    Please let me know if you have any questions.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hi Patrick,

      thank you for this information, I'll work around it. I'd consider an "unspecified" DateTimeKind (when better information is actually available) a bug. A minor one. I'd love to see this fixed, in the long run.

      Kind regards,
      Stefan.

      Comment


        #4
        Hello gurko,

        Thank you for your response.

        I will forward your detail to our Development team.
        Patrick H.NinjaTrader Customer Service

        Comment


          #5
          Hello gurko,

          Thank you for your patience.

          Your request has been assigned to the internal tracking id of SFT-2850.

          Please let me know if you have any questions.
          Patrick H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by aligator, Today, 10:11 PM
          0 responses
          1 view
          0 likes
          Last Post aligator  
          Started by psquare, Today, 03:11 PM
          4 responses
          18 views
          0 likes
          Last Post psquare
          by psquare
           
          Started by ballboy11, Today, 03:20 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by tonynt, Today, 02:18 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_JoshG  
          Started by denalek2419, Today, 01:46 PM
          3 responses
          12 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X