Jump to content
  • 1

Eror with IG API?


blitzjoker

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?

 

Link to comment

29 answers to this question

Recommended Posts

  • 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
Link to comment
  • 0

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
Link to comment
  • 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.

 

Link to comment
  • 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

 

 

 

Link to comment
  • 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
Link to comment
  • 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
Link to comment

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
  • image.png

  • Posts

    • after last weeks sell off'  a chart showing price in a possible discount & at a previous level of interest 
    • Solana ($SOL) is facing a challenging period in the market, with its price dropping to $130.56 USD. Here’s a closer look at what’s happening and what might be next for SOL. Recent Price Decline 15.17% Drop in a Month: Over the past month, Solana coin has fallen by 15.17%. This decline reflects the broader market’s pressure on the cryptocurrency. 8.5% Weekly Fall: Just this week, Solana saw an 8.5% drop, a sign that bears are firmly in control. Despite attempts to maintain a bullish outlook, the market seems to have different plans. Critical Support Levels Breakdown of $134 Support: Recently, SOL broke through the $134 support level, raising concerns that further declines could be on the way. Key Support at $122: The $122 level is now under the spotlight. This price point has been tested six times, and many whales view it as crucial. A break below this could push SOL towards $90. But if this support holds, it might set the stage for a bullish turnaround. $100 Support: While the $100 support level is still a bit distant, it’s essential to watch if the current bearish momentum continues. Revisiting this level could spell trouble for Solana. Changing Market Sentiment Shift to Bearish: The overall sentiment around Solana is slowly turning bearish. Since March, SOL has struggled to make new highs, and the current price action suggests that new lows could be coming. Potential Bullish Outcome: However, some analysts believe that if Solana manages to stay above $122 throughout 2024 and 2025, it could be incredibly bullish for the future, possibly leading to significant gains in 2025. Upcoming Breakpoint Event Historical Price Surges: There’s a potential catalyst on the horizon. Historically, Solana has seen price surges two weeks before its annual Breakpoint event. In previous years, SOL surged by 35% in 2021 and 2022, and by 60% in 2023. 2024 Event: With 16 days left until the 2024 Breakpoint event, could we see another rally? Only time will tell. The Importance of $122 Support As Solana approaches the $122 support level, all eyes are on whether it will hold. A break below could lead to further declines, while maintaining this support could bring back some bullish momentum. As always, stay informed, and remember the old adage in crypto: "buy the rumor, sell the news." Keep watching the charts as we near the 2024 Breakpoint event.  
    • One of the prominent cryptocurrency exchange, has maintained its commitment to user security through its Protection Fund. This self-insured fund, designed to safeguard user assets against potential threats such as hacks, fraud, and market volatility, has shown remarkable stability and growth. The fund has consistently maintained a value above $390 million, surpassing Bitget's initial commitment of $300 million. The exchange ability to continues to maintain a reserve ratio well above 150%, indicating a strong buffer against potential risks. The fund's value has shown correlation with Bitcoin's price movements, demonstrating its responsiveness to market conditions. Over the observed period, the fund's value peaked at $424.8 million and reached a low of $350.7 million, showcasing its ability to withstand market volatility while maintaining a substantial baseline. In February, the fund reached an all-time high valuation of over $543 million, coinciding with broader market uptrends. The Protection Fund's portfolio includes high-liquidity cryptocurrencies such as BTC, USDT, and USDC, which contributes to its stability and liquidity. This diversification strategy aims to mitigate risks associated with external market factors. Bitget's approach of self-funding and internally managing the Protection Fund allows for potentially quicker response times in critical situations, as it operates independently of external regulations and approvals. As the cryptocurrency market continues to evolve, the performance and management of such security measures will likely remain a point of interest for both users and industry observers.
×
×
  • Create New...
us