Jump to content
  • 0

Error on campanion with demo account


FunkyMonk

Question

Hi,

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

    • What is the Phemex Invitation Code? The 2024 Phemex Invitation Code is HMXFT5. New users signing up at Phemex.com can use this code, applicable to cryptocurrency spot trading, derivatives, and altcoins. This code is verified and operational today, available in your area. Phemex Invitation Code “HMXFT5” Benefit The Phemex Sign-up Bonus offers an enticing opportunity for newcomers, providing a comprehensive package of benefits: Bonus Details: Upon successful registration and application of the invitation code, users receive a sign-up bonus consisting of $8,800 and 5100 Phemex Tokens. Maximizing Benefits: The $8,800 portion of the bonus can be used to cover trading fees or offset losses in both spot and futures markets, particularly beneficial for beginners in trading. Additionally, the 5100 Phemex Tokens offer various advantages, including staking opportunities, vePT earnings, discounts on trading fees, and other perks that enhance the overall trading experience on Phemex.  
    • Was ist der Phemex-Einladungscode? Der Phemex-Einladungscode für 2024 lautet HMXFT5. Neue Benutzer, die sich bei Phemex.com anmelden, können diesen Code verwenden, der für den Spothandel mit Kryptowährungen, Derivaten und Altcoins gilt. Dieser Code ist verifiziert und heute in Ihrer Region verfügbar. Vorteil des Phemex-Einladungscodes „HMXFT5“ Der Phemex-Anmeldebonus bietet eine verlockende Gelegenheit für Neueinsteiger und bietet ein umfassendes Leistungspaket: Bonusdetails: Nach erfolgreicher Registrierung und Anwendung des Einladungscodes erhalten Benutzer einen Anmeldebonus in Höhe von 8.800 USD und 5.100 Phemex-Token. Maximierung der Vorteile: Der 8.800-USD-Anteil des Bonus kann zur Deckung von Handelsgebühren oder zum Ausgleich von Verlusten sowohl auf den Spot- als auch auf den Futures-Märkten verwendet werden, was insbesondere für Anfänger im Handel von Vorteil ist. Darüber hinaus bieten die 5100 Phemex-Token verschiedene Vorteile, darunter Staking-Möglichkeiten, vePT-Einnahmen, Rabatte auf Handelsgebühren und andere Vergünstigungen, die das allgemeine Handelserlebnis auf Phemex verbessern.
    • Hi all. Has anyone had errors or issues with the new TradingView integration. My issue is that I cannot use Volume and VWAP indicators. It appears that anything requiring volume data does not work, and only shows error against the indicator. IG Trading - can you advise when volume data shall be available on the TradingView platform. Thank you.
×
×
  • Create New...
us