Jump to content
  • 0

How to login to Demo SB account not CFD account


Sjg1234

Question

Hi,

I am using an api to connect to IG.  My UK account logs in with the demo api details straight to the CFD account.  When i use the live account details it logs staright into the SB account.

Does anyone know how i can set the demo api login to default to the demo SB account.  I have looked in IG interface and cant find a thing.

thanks,

Link to comment

2 answers to this question

Recommended Posts

  • 0
14 hours ago, Sjg1234 said:

Hi,

I am using an api to connect to IG.  My UK account logs in with the demo api details straight to the CFD account.  When i use the live account details it logs staright into the SB account.

Does anyone know how i can set the demo api login to default to the demo SB account.  I have looked in IG interface and cant find a thing.

thanks,

Hi @Sjg1234,

Please reach out to webapisupport@ig.com with your account ID. The demo account are usually auto allocated. The API IT team will be able to change the account for you.

Thank  you - Arvin

Link to comment
  • 0
22 hours ago, Sjg1234 said:

Hi,

I am using an api to connect to IG.  My UK account logs in with the demo api details straight to the CFD account.  When i use the live account details it logs staright into the SB account.

Does anyone know how i can set the demo api login to default to the demo SB account.  I have looked in IG interface and cant find a thing.

thanks,

You can use the REST API /session put method to switch the account (I am using this in my code and it works fine).

Check out the documentation for the Session endpoint then scroll down to the PUT method, here you will see how to set the defaultAccount  and accountId:

https://labs.ig.com/rest-trading-api-reference/service-detail?id=600

I hope this helps.

Edited by andysinclair
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
  • General Statistics

    • Total Topics
      21,282
    • Total Posts
      90,911
    • Total Members
      41,397
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    matchifang
    Joined 07/02/23 01:14
  • Posts

    • European Stock Market Elliott Wave Investing Strategies Content DAX 40 - FTSE 100 - DXY - GBPUSD - EURUSD Market Summary DAX Wave (v) / FTSE Top. Elliott Wave Analysis DAX 40  Wave (v) of v) of 5. Forex Pairs Tops Trading Strategies. Nil Video Chapters 00:00 DAX 40 (GDAXI)  05:25 UKX / FTSE 100 10:56 Forex GBPUSD / EURUSD / DXY  18:16 TRIAL Buy 1 Month Get 3 Months Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge com    
    • Stock Market Investing S&P/ASX 200 Elliott Wave Technical  Analysis Content ASX200, CBA, IRON ORE, BHP, RIO, FMG,GOLD, NCM, GDX, PLS, LTR, DXY, AUDUSD, GOV-BONDS Summary Strong USD Turns resources lower. Banks still edging higher, creating choppy ASX200 possible top... Elliott Wave ASX 200  Wave (1) top Strategy ASX200  Very choppy environment. No Strategy. Video Chapters 00:00  S&P/ASX 200 (XJO)  / USD DXY 11:36 Commonwealth Bank CBA, XXJ 13:00 BHP Group (BHP), Rio Tinto (RIO), Fortescue Metals Group (FMG) 18:32 Newcrest Mining NCM / GOLD XAUUSD GDX 27:50 Lithium Stocks,PLS 30:52 AUDUSD / US Dollar DXY 36:46 TRIAL Buy 1 Month Get 3 Months Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge com  
    • Look Ahead to 07/02/23: RBA; GB Retail Sales; BP, BNPP earnings Australia’s central bank is likely to deliver a fourth consecutive quarter-point interest rate hike, after further tightening by the Fed, the ECB and the BoE. Brace for UK retail, earnings from BP (BP) and BNP Paribas (BNPP). Also, look out for US trade balance figures and Halifax house price data ahead of key UK growth data out later in the week.    Angeline Ong | Presenter, Analyst and Content Editor, London | Publication date: Monday 06 February 2023        
×
×
  • Create New...