• 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 bztynbzp, Yesterday, 11:17 PM
          0 responses
          1 view
          0 likes
          Last Post bztynbzp  
          Started by Dan_D_Trader, Yesterday, 03:49 PM
          0 responses
          4 views
          0 likes
          Last Post Dan_D_Trader  
          Started by JohnAymin, Yesterday, 02:38 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Tyler  
          Started by Rmos22, Yesterday, 02:20 PM
          2 responses
          23 views
          0 likes
          Last Post Rmos22
          by Rmos22
           
          Started by sawtooth500, Yesterday, 12:59 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Spencer  
          Working...
          X