-
September 7th, 2023, 07:27 PM
#1
Struggling to connect via Python using a demo IG account
Hello all,
As per the title suggests, I am trying to use the IG API to stream some data, and am struggling with it.
The topic came up before, but some of the posts are quite old. I have tried some github sharing python code samples found online, but I have not been able to successfully connect with any of them.
I also tried to post directly in my browser with "https://demo-apd.marketdatasystems.com/lightstreamer/create_session.txt?LS_user=XXXXXX&LS_password=CST-YYYYYYYYYYY|XST-ZZZZZZZZZZ&LS_adapter_set=DEFAULT" (with my details now removed)
I am getting:
OK
SessionId:XXXXXXXXXXXXXXXXXXXXXXX
ControlAddress:apd144f.marketdatasystems.com
KeepaliveMillis:5000
MaxBandwidth:0.0
Preamble: preparing push
Preamble: preparing push
Preamble: preparing push
PROBE
PROBE
Are you able to please assist?
Many thanks
M
-
September 8th, 2023, 09:53 AM
#2
Hi,
Please could you share some more information about the problem you got with the Python client you have tested?
I.e. whether you are able to open a client session or not or only the data streaming is not working.
Could you enable library logging (https://sdk.lightstreamer.com/ls-pyt...o.html#logging)?
Additionally, please keep in mind any potential constraints related to the versions supported by IG, which you can check here: https://lightstreamer.com/share/ig/index.html
Regards,
Giuseppe
-
September 9th, 2023, 05:23 AM
#3
Hello Giuseppe. Thanks for the response. I just came across https://trading-ig.readthedocs.io/en/latest/ which solved my issue. Take care. M
-
September 11th, 2023, 09:48 AM
#4
Thanks for the feedback.
Regards,
Giuseppe
Similar Threads
-
By avdev in forum Client SDKs
Replies: 1
Last Post: September 25th, 2020, 03:12 PM
-
By PBLopez in forum Client SDKs
Replies: 1
Last Post: April 16th, 2018, 10:04 AM
-
By vpurohit in forum Client SDKs
Replies: 1
Last Post: April 29th, 2013, 09:56 AM
-
By krohnjw in forum Client SDKs
Replies: 23
Last Post: February 8th, 2011, 02:47 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:03 PM.
Bookmarks