Jump to content
Medved Trader Forums

Candle data from API appears incorrect?


Jason

Recommended Posts

I am experimenting with the API access and it seems that it's returning the candle data with a time offset and it's not obvious to me why. This is the command I am using through the WSTester:

{
 "cmd": "getCandles",
 "reqID": "1234",
 "startDate": "2023-06-23",
 "candleSize": "2",
 "regHoursOnly": "true",
 "sym": "AMD"
}

The data for the first candle is:

      {
        "t": "2023-06-23T13:30:00.000",
        "o": 109.31,
        "h": 110.42,
        "l": 109.13,
        "c": 110.27,
        "v": 1436842.0
      }

This data is correct for the first 2m candle as shown through the MT UI chart but obviously does not correspond to the 2m candle at 1:30pm. I have looked into the ISO date and time format being used without any clarification.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...