Jump to content

kristoffer

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by kristoffer

  1. I want to switch between two live accounts, but I ger an error. What's wrong? This is how I've tried to do: 1. I get X-SECURITY-TOKEN and CST via https://api.ig.com/gateway/deal/session. 2. I make a PUT request to the same url with a json of {"accountId":"--the-acoountid--","defaultAccount":False}. The response is {'trailingStopsEnabled': False, 'dealingEnabled': True, 'hasActiveDemoAccounts': True, 'hasActiveLiveAccounts': True} 3. The switch seems to work, but then - when I try to use the API I get an error an all requests: {'errorCode': 'error.security.account-token-invalid'} What’s wrong?
×
×
  • Create New...
us