Jump to content
  • 2

API /session v3 no longer works


tfyfe

Question

Hi, I have been using the REST API for some months now successfully and as of this week it has stopped working. 
 

I am trying to login to my demo account. I receive the following error in my app and also on the API companion. 

 

V2 of the /session API works fine with the same username, password, api key etc.  
 

URL

https://demo-api.ig.com/gateway/deal/session

Headers

Name=Value

Content-Type=application/json; charset=UTF-8

Accept=application/json; charset=UTF-8

X-IG-API-KEY=my api key

Version=3

Body

{
    "identifier": "my username",
    "password": "my password"
}

 

Result

HTTP 401

status: error


content-length: 50
content-type: application/json

 

{
    "errorCode": "error.security.oauth-token-invalid"
}
Link to comment

12 answers to this question

Recommended Posts

  • 0

Had the same issue. I emailed the helpdesk and they said 

Quote

That is a known issue that our team is currently investigating.  You  can reference

INC0761055 should you need an update on it.

 

Link to comment
  • 0

I have the same issue, started yesterday evening:

trading_ig.rest.IGException: HTTP error: 401 {"errorCode":"error.security.oauth-token-invalid"}


I run everything via git/container and therefore  confident I have not changed anything.

I do run multiple sessions (3x) using the same account, wondering if this is now being stopped.

I have not had a single issue for more than a year.

  • Like 1
Link to comment
  • 0

I had this issue yesterday actually, The API needs to be better documented. It seems to be abandoned but VERY helpful and useful for some of us. The only way I find out is by literally looking at the JSON responses as the documentation is out of date. 

Link to comment
  • 0

Same for me, it stopped working this week with no changes to my code base. 
I can sort of get the api companion working at labs.ig,com but i can't for the life of me figure out how that can work by my code doesn't. 

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

    • Hi guys, happy weekend! Cats TGE is getting closer, and a lot of exchanges have rolled out opportunities for users to make the most of it, especially for those who didn’t farm. I’ll be focusing on Bitget Launch Pool since I just locked some BGB.   Here’s the deal: for those who didn’t meet the requirements for the official airdrop, you can still participate in the ongoing launch pool. You can stake BGB or USDT and earn some CATS. The last time I checked, the APR was in triple digits, and the pool ends in about 6 days.   Personally, I think this is a great opportunity to get involved in the Cats ecosystem. What do you think?
    • This gives more opportunity to users to earn more from this launchpool. 
    • Hey I wanted to share my excitement about the upcoming $CATS airdrop and the Bitget Launchpool event. If you're into crypto like me, you won't want to miss this! $CATS Airdrop Claiming First off, the $CATS airdrop is happening soon, and it's super easy to claim. Exchange like Bitget have partnered with Cats to offer a gas-free airdrop on Telegram. This means you can claim your tokens without worrying about those pesky gas fees! The tokens will be automatically credited to your account before the spot trading begins on October 8th, 2024, at 10:00 UTC. But that's not all! The ongoing Launchpool This is a fantastic opportunity to farm some extra tokens. The total distribution for this event is a whopping 19.5 billion $CATS tokens. If you've participated in Launchpool events before, you know how user-friendly and rewarding they can be. Why I'm Excited As someone who has been using the exchange for a while, I appreciate their transparency and the ease of use of their platform. The fact that they are making the airdrop gas-free is a huge plus. Plus, the Launchpool events are always a great way to earn some extra tokens with minimal effort. If you're as excited as I am, make sure to mark your calendars for these dates. Happy farming and trading, everyone!
×
×
  • Create New...
us