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
      19,042
    • Total Posts
      85,807
    • Total Members
      68,241
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    Sayasith98
    Joined 02/07/22 07:51
  • Posts

    • If we could get some news about negotations and a possible ceasefire in Ukraine then i would say this is the bottom https://edition.cnn.com/markets/fear-and-greed "That indicator previously fell to 0 in August 2002, July 2008, September 2011, September 2015, January 2016 and March 2020, observed Hartnett. When it has previously zeroed out, except in the case of a double-dip recession such as 2002 or in the event of systemic events, as in 2008 and 2011, three-month returns have been strong, as the table below shows." https://www.marketwatch.com/story/based-on-history-the-next-bull-market-is-just-months-away-and-could-take-the-s-p-500-to-6000-says-bofa-11655475414
    • The CME Bitcoin futures BTC main contract was at $19,370 late Friday (Chinese time) in New York, up 3.25% from Thursday's New York session, and trading in the $18,630-20,790 range during the session, down 8.87% for the week. the CME Ethereum futures DCR main contract was at $1065.50, up 5.08% from Thursday, and trading in the 1009.50-$1118.00 range, down 13.02% for the week.Maybe there is still a possibility of decline.
×
×
  • Create New...