Jump to content
  • 1

Eror with IG API?

Question

Hi I am getting the following error from the IG API when trying to log in via their Excel interface file:

{“errorCode”:”error.client.accounts.list.generic-error”}

I log in every day this way and have never had this problem before.  Does anyone have any idea how to get round it?

 

Share this post


Link to post

29 answers to this question

Recommended Posts

  • 0

Thanks for the info; at least I know it's not something I've done!

 

Share this post


Link to post
  • 0

I'm also having this issue, it was working this morning. 

When trying to GET https://demo-api.ig.com/gateway/deal/accounts I receive this response:

status_code: 500
content: {"errorCode":"error.client.accounts.list.generic-error"}

Not tried in live

Share this post


Link to post
  • 0

Yes me too - all my files aren't working

Same 500 error

Not a good time just before a market turn !!

Share this post


Link to post
  • 0
Guest rka

Same problem here. This seems to be an internal issue.

Share this post


Link to post
  • 0

One way that I am bypassing this error at the moment is by using the json object that is coming from the AuthenticationResponse. 

Within the response there is one node that contains the Account Info as well as another node that contains all the accounts that you might have. There you can find almost the same information that you would get from the Accounts endpoint.

{
  "accountType": "SPREADBET",
  "accountInfo": {
    "balance": 0,
    "deposit": 0,
    "profitLoss": 0,
    "available": 0
  },
  "currencyIsoCode": "GBP",
  "currencySymbol": "£",
  "currentAccountId": "",
  "lightstreamerEndpoint": "https://apd.marketdatasystems.com",
  "accounts": [
    {
      "accountId": "",
      "accountName": "Spread bet",
      "preferred": true,
      "accountType": "SPREADBET"
    }
  ],
  "clientId": "",
  "timezoneOffset": 1,
  "hasActiveDemoAccounts": true,
  "hasActiveLiveAccounts": true,
  "trailingStopsEnabled": false,
  "reroutingEnvironment": null,
  "dealingEnabled": true
}

  • Sad 1

Share this post


Link to post
  • 0
Guest JRH

Yeah same issue. Logs in ok, gets market data. 500 error on the account info.... 

Share this post


Link to post
  • 0
Guest Gael

Same issue here. Suddenly ...

Share this post


Link to post
  • 0
Posted (edited)

I don't use the Excel add-in. I develop in c# using plain html Rest calls, so I was more talking about the json response from the service itself. I replied to your initial message just to say that I was having the same problem, so you don't get mad :D
But looking at the sample code for Excel provided from IG I can see that there is a Subscription group that handles this call:

 private SubscriptionGroup accountBalanceSubscription;

This object is within the IGApiExcelClient class.

That subscription connects ultimately to the rest endpoint that throws the error, you will need to change it to use the information coming from the authentication response instead of the accounts response. I can image anyway that this error should be fixed very soon. I am expecting it to go away tomorrow during the day.

Can we log this error anywhere that would reach the API team? I saw that you posted the same message on the API forum as well but no one seemed to reply. 

Edited by jlz
  • Sad 1

Share this post


Link to post
  • 0

Thanks jlz; I program in vba and could probably use what you have said to maybe delve into a solution, but none of us should have too really.  Still, you are probably right that this will be fixed soon, unless IG have just given up on their API which is always possible.  It's certainly not well supported.  No, I don't know how to report this directly to IG sadly.  I'll have a look tomorrow maybe and report back if I find out more.

 

Share this post


Link to post
  • 0

I'm having this problem too.

I'm looking for a work around. I call the API from a .net application. I will advise if I find a solution.

I hope IG supports their API more actively going forward. It's the one feature that provides value add over other brokers

Cheers

 

 

 

Share this post


Link to post
  • 0

Same error here.  I presumed it was due to some sort of weekend server maintenance.  Really hope it gets resolved asap.

Share this post


Link to post
  • 0

I am now seeing this problem as well (it was working for me last week).

The /gateway/deal/accounts endpoint is returning a server 500 error:  {"errorCode":"error.client.accounts.list.generic-error"}

It is broken on both the demo and prod API.

@CharlotteIG Can somebody at IG look into this as a matter of urgency?

Thanks.

Share this post


Link to post
  • 0
Guest elongden

same problem here and neither the demo or the live account works. When can this be fixed?

Share this post


Link to post
  • 0

Same problem with me. It also occurs if you use the API companion. I also cannot switch accounts.

 

Share this post


Link to post
  • 0

I have just logged in ok and downloaded some data successfully.  Have not tried automated trading yet, but will have a go this afternoon.

  • Like 1

Share this post


Link to post
  • 0
46 minutes ago, blitzjoker said:

I have just logged in ok and downloaded some data successfully.  Have not tried automated trading yet, but will have a go this afternoon.

It's working for me on Live but not on Demo.

Share this post


Link to post
  • 0
Posted (edited)

Get accounts is still not working for me on demo (i.e. using the API companion)

Edited by JulianG

Share this post


Link to post
  • 0

Thank you to jlz for a work around using the authentication response. Having implemented the jlz approach (under .net) I find now also that the /accounts end point is working again, at least for the Live account.  

 

 

  • Like 1

Share this post


Link to post
  • 0

Am still seeing the same 500 error on trying to retrieve an account balance...

{"errorCode":"error.client.accounts.list.generic-error"}
Internal Server Error

Share this post


Link to post
  • 0

I'm finding the API now allows index data download but not account balances - still getting a 500 error on those

Share this post


Link to post
  • 0

This is fixed now for me in the API companion. I can list accounts and change account.

Julian

Share this post


Link to post
  • 0
On 19/06/2020 at 14:59, blitzjoker said:

Hi I am getting the following error from the IG API when trying to log in via their Excel interface file:

{“errorCode”:”error.client.accounts.list.generic-error”}

I log in every day this way and have never had this problem before.  Does anyone have any idea how to get round it?

 

 

On 19/06/2020 at 15:09, jlz said:

I am getting the same error.
I tried the API companion at https://labs.ig.com/sample-apps/api-companion/index.html
and it returns the same error you posted as well . I guess we have to wait for it to be fixed, it is a 500 internal server error. We can't do anything. 

 

On 19/06/2020 at 15:58, Mellstock said:

I am having the same problem

 

On 19/06/2020 at 16:21, another_user said:

I'm also having this issue, it was working this morning. 

When trying to GET https://demo-api.ig.com/gateway/deal/accounts I receive this response:

status_code: 500
content: {"errorCode":"error.client.accounts.list.generic-error"}

Not tried in live

 

On 19/06/2020 at 21:05, John_M said:

Yes me too - all my files aren't working

Same 500 error

Not a good time just before a market turn !!

 

On 20/06/2020 at 11:31, Guest rka said:

Same problem here. This seems to be an internal issue.

 

On 20/06/2020 at 08:26, rmwesley said:

Same for me via python ig-markets-api-python-library 

 

On 22/06/2020 at 02:58, BDod said:

I'm having this problem too.

I'm looking for a work around. I call the API from a .net application. I will advise if I find a solution.

I hope IG supports their API more actively going forward. It's the one feature that provides value add over other brokers

Cheers

 

 

 

 

On 22/06/2020 at 08:41, Guest elongden said:

same problem here and neither the demo or the live account works. When can this be fixed?

 

On 22/06/2020 at 08:54, JulianG said:

Same problem with me. It also occurs if you use the API companion. I also cannot switch accounts.

 

Hey everyone,

After speaking with out technical team they confirmed: 

 
I got your case with API on the forums. We have an incident on it INC0455486. So far we have fixed for the live and waiting on demo
 
If you're still experiencing issues with your live account please email us, explain the issues and reference the incident number above. Demo account issues should be resolved within the week. 
 
Apologies for the inconvenience. 
  • Like 1
  • Great! 1

Share this post


Link to post
  • 0

Thanks - it starting working mid afternoon but it's just given me a 500 error when trying to check balances again

Share this post


Link to post
  • 0

Still getting a 500 error when looking for my balance, although it did just auto-deal for me

Obtaining market data seems to be working fine.

  • Like 1

Share this post


Link to post
  • 0

Seems to be all working now - thanks !

 

Share this post


Link to post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
You are posting as a guest. If you have an account, please sign in.
Answer this question...

×   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.


  • Member Statistics

    • Total Topics
      12,823
    • Total Posts
      65,803
    • Total Members
      86,825
    Newest Member
    Eleanoralice
    Joined 29/10/20 08:36
  • Posts

    • Start the conversation The US election is scheduled for Tuesday 3 November 2020, when all 50 states and Washington DC will cast their votes. The vote spans six different time zones, so the first exit polls will be available at around 11pm (EST) when West Coast voting closes. In the UK, that will be around 4am (GMT) on Wednesday 4 November 2020. The election is likely to create opportunities for traders, with price movements expected across a range of forex pairs, indices and commodities in the run-up to polling day. Volatility related to the election could continue until congress certifies the result on Wednesday 6 January 2021, or even until the winner is inaugurated on Wednesday 20 January 2021. What should traders expect to see during the US election? All US markets tend to experience increased volatility in the run up to a presidential election, including USD forex pairs, indices and commodities. That’s because many investors will attempt to lock in positions before the result is announced – using polls to gauge public sentiment. The aim is to take full advantage of the price moves that occur when the country’s political direction is confirmed. At the top level, early indications suggest that the following could be on the cards if one of these two main candidates win: Donald Trump A Trump win could see an escalation of the trade war, potentially causing problems for some US exporters and having a negative impact on the value of the dollar. However, this effect could be offset by reassurances that tax cuts and deregulation will continue – boosting the US economy. Joe Biden A Biden win could see tensions in the trade war cool, providing a boost to US exporters and the dollar. However, these effects could be offset by tax increases for high-income households, and more limited deregulation.   How will markets react to the different candidates? Market commentary by IG Senior Market Analyst Joshua Mahony Stocks Markets hate uncertainty, and historically the perception has been that a new president might bring policies that could be harmful for stocks. This happened in 2016 when analysts were confident that a Trump presidency would spark a market collapse. But, we are now seeing that same fear creep in as people consider a Biden presidency and the potential uncertainty it could cause. Biden is openly more left-leaning, and his policies are expected to be geared towards human needs rather than those of investors and traders. This sentiment isn’t helped by suggestions that Biden would reverse Trump’s tax cuts, and it is likely that markets will rise alongside the potentially increased chance of a Trump victory as we approach the election. USD The value of a currency is supposed to reflect the health of an economy and its future prospects. Many are expecting Biden to be less focused on the markets than his Republican opponent, so the dollar could weaken in the event of a Biden victory. However, this effect could be offset if Biden is able to improve relations between the US and China after years of market anxiety. In this scenario, it would be the Chinese yuan which may benefit the most, with the trade war having sparked huge upside for USD/CNH. Keep in mind that if the wider markets fall on a Biden victory – including US stocks and indices – the dollar would likely rally in the short-term to reflect a risk-off move as investors turn to USD. Gold The prospect of a more expansive fiscal policy under Biden, and from a government which is happy to embark on substantial spending programmes, could provide a boost to precious metals. There’s a caveat here too, because in the past precious metals have also followed the same patterns as the stock markets during times of crisis. So, any collapse in equity markets that may come from a change at the White House could drag gold lower in the immediate period. Plus, while Trump has finally seen the kind of stimulus he would have hoped for, a Biden win could result in a more substantial stimulus package if the Democrats gain a foothold in Congress.   How are you trading?
    • Dax has been volatile today. Down 600, Dax down 4% on COVID fears. US open in 10 minutes. 
×
×