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

    • Already grabbed some BB at the former platform while leveraging on their earn products for passive income. 
    • Bitcoin and Ethereum blockchain has maintained their dominance over the past decade due to users trust even though they both have their glaring challenges of high fees and low scalability. Finding a better alternative hasn't been that easy. BNB smart chain, polygon and Solana blockchain has equally been adopted by a whole lot of people but the real big deal that offers complete blockchain solution and unmatched utility and functionality is Bitkub chain. Not quite popular like the rest, Bitkub chain is a decentralized blockchain ecosystem that provides an equitable platform for creating low-cost, interoperable blockchain-based application. With an ultra fast transaction speed and confirmation, users of the network equally benefits from the Ethereum smart contract support. Bitkub aim to democratize access to transparent and efficient technology for businesses, public and private sectors as well as end users hence it stands out as the new generation blockchain and its adoption has been pretty rapid over the last 2 years. With an array of products which includes but not limited to; Bitkub NEXT, Bitkub NFT, Bitkub Metaverse and some exciting Game-Fi products, Bitkub chain is cementing its place as the newest generational blockchain hence the reason the native token KUB has been experiencing significant growth. With the token now visible and accessible to over 25M new users on Bitget, I am optimistic that KUB might be another token that is mostly likely going to witness widespread adoption in coming years. What are your thoughts about this project?
    • This is entirely a new feature I look forward to utilize & on the question, I'd go for just 25% of my collateral. 
×
×
  • Create New...
us