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
  • General Statistics

    • Total Topics
      20,102
    • Total Posts
      88,171
    • Total Members
      69,091
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    paulsurian
    Joined 04/10/22 13:16
  • Posts

    • Hi @Adnan_The_Barbarian Your request has been submitted. Thank youAll the best - MongiIG
    • Charting the Markets: 4 October FTSE, DAX and Nasdaq breaking higher as bulls return to the fold. EUR/USD and GBP/USD edge up while USD/JPY falters at Y145 again. And Brent crude oil and gold rally on falling US dollar and US natural gas prices.   This is here for you to catch up but if you have any ideas on markets or events you want us to relay to the TV team we’re more than happy to.
    • GBP/USD - PRICES, CHARTS, AND ANALYSIS Sterling rallying hard as gilt market turmoil subsides. There remain plenty of Sterling headwinds. A big shift in GBP positioning as net-longs are slashed and net-shorts jump. Sterling is pushing higher against the US dollar, and has made back all of its recent ‘mini-budget’ sell-off, as the greenback fades lower. The recent turn lower in US Treasury yields, sparked by fears that the US central bank is moving interest rates too high, too fast, has helped to stall the multi-month sell-off in cable. The pair are now back at the March 2020 swing-low around 1.1410, a level that stalled price action prior to the collapse   Oct 4, 2022  Nick Cawley, Strategist | DailyFX
×
×
  • Create New...