Jump to content
  • 0

Error on campanion with demo account




When I turn the companion on demo mode and I pass the demo account and apikey generated in my account settings, I get a 200 and can successfuly login.

After this, on every get that I try, I get the following error. For example, after running get accounts:

    "errorCode": "error.public-api.failure.stockbroking-not-supported"

Is there something that I need to request / activate for my account?

Link to comment

1 answer to this question

Recommended Posts

  • 0

This happens when you have another type of account with IG, like an ISA or Share Dealing account, and that one is set to be the default account. You see that error because the API does not support trading with those types of accounts.

You can resolve this by setting your default account to be your spread betting account. Using the web interface, go to:  My IG > Settings > Default view, and select the spread bet account there. That's the easiest way.

There is another way to do it via the Companion, but its more fiddly. For this one you need to know the 5 letter account ID for your spread bet account. Log into the companion as you did previously. After you have the 200 response from logging in, you then need to manipulate the security headers manually for subsequent requests. You do this by setting  values in the Headers section at the top of the right hand pane. Enter "IG-ACCOUNT-ID" into Name, then your spreadbet account ID into Value. Then click the "Add/Change" button

  • Thanks 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

    • Elliott Wave Analysis Indices: Elliott Wave Analysis Indices: SP 500 & NASDAQ v of (v) of iii) of 1 of (5) of 3) of I.  NVDA Earnings has been the center of attention late in the last session and has created volatile intraday price action, however we are still on track for all Elliott wave counts, that is looking for the top of Wave iii).  The European and Asia indices will track the US indices on an intraday basis, so they too are in much the same Elliott wave patterns. Video Chapters  00:00 SP 500 (SPX), SPY ETF 08:45 NASDAQ (NDX), QQQ ETF 12:04 Russell 2000 (RUT) IWM 13:18 DAX 40 (DAX) 16:57 FTSE 100 UKX (UK100) 18:11 S&P/ASX 200 (XJO) 24:06 End Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge      
    • Currently, Bitget wallet stands as one of the most suitable decentralised wallets. It is built with everything incorporated into it, it is the hub of a handy suite of tools that cater to every crypto enthusiast.  It is interesting to note that it has been over 6 years since the platform commenced rendering crypto services. In commemoration of its 6th anniversary, an event has been set up to let its users earn some good amount and merch along with.  The criteria for participation is relatively easy. You just need to join to win exclusive merch, firstly by following @BitgetWallet while adding a RT + Comment #BitgetWallet6Years’’ Similarly, you can give insightful feedback about Bitget Wallet and stand a chance to win Bitget exclusive merch like T-shirt, Cap, Hoodie and Wristband. I will be jumping on this event too. Such an easy peasy way to earn.
    • Basically, they're letting creators mint NFTs and other digital stuff across multiple blockchains at once. Holograph isn't the only one trying to build bridges between blockchains. Projects like Omnibridge and Wormhole are also in the game, each with their own way of moving your digital assets around.  While Holograph focuses on this "native minting" thing across chains, other projects might be a better fit depending on what you need. Doing your research is key! Definitely something to consider. While Holograph recently scored a cool $11 million in funding, omnichain functionality is still pretty new. They've also got some interesting features, just landed on Bitget, and seems to be building an empire state. There could be bumps in the road, so be sure to do your own research and understand the potential risks. So, what do you think? Is Holograph the future of NFTs, or is it just a bunch of hype? Have you tried any other cross-chain solutions? Let's hear your thoughts in the comments!
  • Create New...