Jump to content
  • 0

API returning incorrect opening and closing dates


Guest Jack W

Question

Guest Jack W

Hi All.

I am making an application which leverages the IG API.

I noticed I was getting some negative results when calculating the duration of my share/fx trades.

I looked into it further and found that the raw date data that I was getting back from the IG API was incorrect.

The date data I get from downloading my history as a .csv is correct so I am assuming the API is doing something funky with the date on the server side?

From my research it is the "dateUtc" field which is incorrect. In the .csv file it is the Closed column.

Any help or clarification would be much appreciated.

Link to comment

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
us