Announcement

Collapse
No announcement yet.

Date and Time of the price in UTC

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

  • Date and Time of the price in UTC

    Hello all,

    I would like to know if it is possible to know the price time in UTC? In fact, Esignal API returns me, via the the Event OnBarsChanged,

    the local time or precisely the time set in my machine.
    Any ideas are welcome.

    Thanks and best regards

    Here is some line of codes:

    Private Sub esignal_OnBarsChanged(ByVal lHandle As Integer) Handles esignal.OnBarsChanged
    FillHistory(lHandle)
    End Sub

    Private Sub FillHistory(ByVal historyHandle As Integer)
    Dim baritem As IESignal.BarData
    Dim dt as DateTime
    ...
    dt = baritem.dtTime
    ...

    end sub

  • #2
    UTC timestamps are not sent at the API level, your application will need to convert back from your local timezone to UTC.

    Comment

    Working...
    X