Jump to content

martik

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by martik

  1. Hello! I'm facing issues with the API's for DEMO account. I can successfully connect to the account, but cannot execute any other API calls like fetching open positions. It works well for LIVE account. I'm using IG Python Libraries, with below base urls: D_BASE_URL = {"live": "https://api.ig.com/gateway/deal", "demo": "https://demo-api.ig.com/gateway/deal"} As it throws 500 (Internal Server Error) this is something on IG end(or at least it doesn't give me a correct output if there is anything on my end). Anyone else facing the same issue or has any suggestion how I can proceed? <-- LOG --> #DEMO ACTION: create ENDPOINT: /session PARAMS: {'identifier': '***', 'password': '***'} {'headers': {'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}, 'auth': None, 'proxies': {}, 'hooks': {'response': []}, 'params': {}, 'stream': False, 'verify': True, 'cert': None, 'max_redirects': 30, 'trust_env': True, 'cookies': <RequestsCookieJar[]>, 'adapters': OrderedDict([('https://', <requests.adapters.HTTPAdapter object at 0x7fba0276bcc0>), ('http://', <requests.adapters.HTTPAdapter object at 0x7fba0276bd68>)])} VERSION: 2 {'accountType': 'CFD', 'accountInfo': {***} **ACCOUNTID** Connected to account Demo-cfd(**ACCOUNTID**), Balance : *** SEK trader.fetchOpenPositions - fetching open positions! trading_ig.fetch_open_positions ACTION: read ENDPOINT: /positions PARAMS: {} {'headers': {'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}, 'auth': None, 'proxies': {}, 'hooks': {'response': []}, 'params': {}, 'stream': False, 'verify': True, 'cert': None, 'max_redirects': 30, 'trust_env': True, 'cookies': <RequestsCookieJar[]>, 'adapters': OrderedDict([('https://', <requests.adapters.HTTPAdapter object at 0x7fba0276bcc0>), ('http://', <requests.adapters.HTTPAdapter object at 0x7fba0276bd68>)])} VERSION: 1 <Response [500]> {'errorCode': None} #LIVE ACTION: create ENDPOINT: /session PARAMS: {'identifier': '***', 'password': '***'} {'headers': {'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}, 'auth': None, 'proxies': {}, 'hooks': {'response': []}, 'params': {}, 'stream': False, 'verify': True, 'cert': None, 'max_redirects': 30, 'trust_env': True, 'cookies': <RequestsCookieJar[]>, 'adapters': OrderedDict([('https://', <requests.adapters.HTTPAdapter object at 0x7f71ee767940>), ('http://', <requests.adapters.HTTPAdapter object at 0x7f71ee7679e8>)])} VERSION: 2 {'accountType': 'CFD', 'accountInfo': {***} **ACCOUNTID** Connected to account CFD(**ACCOUNTID**), Balance : *** SEK trader.fetchOpenPositions - fetching open positions! trading_ig.fetch_open_positions ACTION: read ENDPOINT: /positions PARAMS: {} {'headers': {'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}, 'auth': None, 'proxies': {}, 'hooks': {'response': []}, 'params': {}, 'stream': False, 'verify': True, 'cert': None, 'max_redirects': 30, 'trust_env': True, 'cookies': <RequestsCookieJar[]>, 'adapters': OrderedDict([('https://', <requests.adapters.HTTPAdapter object at 0x7f71ee767940>), ('http://', <requests.adapters.HTTPAdapter object at 0x7f71ee7679e8>)])} VERSION: 1 <Response [200]> {'positions': []} Open positions : 0
×
×
  • Create New...
us