Jump to content
  • 0

Password for the Live API


domestos

Question

Dear All,

I'm trying to authorize with the live IG API using the same password as for my account, but, when I do, I get the following error

"errorCode": "error.security.invalid-details"

The "identifier" and "api_key" fields are correct. Which password is required for the live API authorization?

Thanks in advance

Link to comment

4 answers to this question

Recommended Posts

  • 0

Solving authorization problems with the API is hard, because obviously you dont want anyone else to know your credentials, and that makes it impossible for anyone else to reproduce your issue.

The credentials are different between LIVE and DEMO. The username, password and API key are all different. In addition, authentication itself is difficult with the API if you are new to it.

If you think you have created an API key correctly, but your credentials don't work, it's probably because you think you have a LIVE account, but it is DEMO. Or the other way around. Or, you are mixing up username/password/API key between LIVE and DEMO. The system will not allow you to create a DEMO API key until you have funded your LIVE account. If you make too many incorrect authentication attempts, your account will be locked. If that happens, you need to contact support to get it unlocked.

I would recommend resolving authentication issues with the REST API Companion

https://labs.ig.com/sample-apps/api-rest-companion-release/index.html

That way you can be sure the API methods will be called correctly, and you can concentrate on getting your credentials and API keys recorded properly. Only move on to actually calling API code once you are sure you have resolved the credentials issues.

Also you need to be aware of the issue discussed here:

 

Link to comment
  • 0

Hi, thanks for the reply.

I'm using the API Companion for this.

With the demo key, everything works fine:

image.thumb.png.a7e071b79f1874d9b7b26cb828756fed.png

But with the live key, I get the error 401.

With the demo key, it's possible to set the password directly:

image.png.8caae00080f362cfb682bcff1ce4bbb3.png

But there's no such option with the live keys. The same password as the account's one doesn't work.

 

Link to comment
  • 0

Figured out. For authorizing with the live API, you should not use the API key's identifier, but your user name for the live account. But it must not be the email! I've changed my user name from the email address to a regular string (i.e. from my_username@mail.com to just my_username) and used it as the API key identifier, and it helped.

I couldn't find the if the documentation is mentioning it anyhow, if it does, please give a link

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 everyone, just a short post at this stage as I want to see if there is any interest in this topic first.  I’ll likely contact IG but wanted to see if there are other thoughts and experiences first as there are several issues I am seeing and it’s a bit complicated, so didn’t want to write some long rambling post. i trade the Dax and Nasdaq indices and use an automated strategy using the API.  I am effectively trying to do a trend trading strategy but on short timescales.  So i set fairly tight stops and then run those trades that leave the area to the plus side.  My win rate is low so have a lot of losers so slippage on stops is quite important to me. i have a database of trades and 5m data going back over 3years now - so have a lot of data to work with. i measured the stop slippage several years ago and it was fine for this method but have re measured it recently as I noticed the losing trades were a bit too large and it seems that the slippage has increased quite a lot for Nasdaq (not then Dax). I am trying to see what is behind this. Anyone interested or tackling similar issues? Thanks David 
    • Hae, crypto degenerates! 👋 Your boy's got the inside scoop on a DeFi gem that's about to blow up! LOGX Network is dropping on Bitget on September 24th, and I'm all in. Here's why I'm losing sleep over this: It's not just another DeFi clone. We're talking AI-powered trading, gasless transactions, and perpetual markets. It's like the lovechild of a hedge fund and a crystal ball! These madlads raised $10.1M from big dogs like Hashed Emergent. That's some serious validation! 67% of tokens going to the community? They're practically handing us the keys to the kingdom! A Cross-chain liquidity from Binance, Coinbase, and OKX. It's like the Avengers of crypto, assembled in one place! Airdrop alert! 🚨 Claims going live on Arbitrum. Free money, anyone? Look, I'm just a dude who likes to ape into promising projects, but LOGX is ticking all my boxes. It's innovative, community-focused, and backed by some serious players. Am I saying mortgage your house for this? Hell no! But maybe skip a few lattes and throw some change at it? Could be your ticket to lambo-land! What do you think? Is LOGX the next big thing or am I huffing too much hopium? Drop your thoughts below! 👇 Remember, DYOR and don't bet your lunch money. But also... don't miss out on potentially the hottest DeFi project of 2024!
    • Cardano (ADA) has seen an impressive 9% increase in price, rising from $0.3251 on September 7 to $0.3545 by September 15. This surge is linked to the announcement from The Artificial Superintelligence Alliance that their FET token is now live on the Cardano blockchain. Why Cardano? The ASI alliance chose Cardano for its strong security, fast transaction speeds, and low fees. This decision has reignited interest in the Cardano ecosystem, and many investors are paying attention. ADA Price Target Looking ahead, analysts believe ADA might aim for $0.5 in the coming days. With a positive Relative Strength Index (RSI) supporting this prediction, the ADA price target of $0.5 seems attainable. A boost in buying volume could help ADA break through this level, and if it does, the next target could be around $0.6. Ecosystem Expansion Cardano is also growing with innovations like the Iagon bridge, which allows asset transfers between Cardano and Ethereum. Additionally, ADA holders are considering investments in promising projects like Rollblock, currently in its 6th presale and promising potential returns of up to 200x. Conclusion As the broader crypto market rebounds, will Cardano continue its upward trend, or will it face challenges ahead? Stay tuned!    
×
×
  • Create New...
us