Jump to content


  • Content count

  • Joined

  • Last visited

  1. Hi Physicsman, Thank you very much for your response! Oh, I see, thank you for noting that! It hadn't dawned on me that Postman isn't suited for streaming data. Hmm, it's interesting that you note that you're suggesting that if I were to implement part of my program outside of Postman, then I could hypothetically still use Postman for the strictly REST API-interactive elements...still, looks like I need to move away from Postman as my base of operations! Oh, I ended up figuring out the issue related to the screenshot, but since you asked, that's an example response that I found in the Lightstreamer documentation. Ah yes, thank you for confirming that! I was a bit worried that I would have to make development more cumbersome by starting up a server whenever I wanted to test something out. Oh, thank you for going through the trouble of giving me a Postman example! It's interesting that the LS_protocol and LS_cid parameters are superfluous, since that contradicts the Lightstreamer documentation, unless I am missing something. But hey, if it works, it works! Thank you so much, you've been a great help!
  2. Hi, I am running into issues creating a Lightstreamer session. I have spent the last two days scouring the FAQs (yes, including the motown69 thread and several others), the Lightstreamer documents, and the GAIN Capital API documents for solutions to no avail. If someone (probably physicsman) could please help me out, I would be very grateful. Background: I am using a demo account for access to the REST API. My demo will not expire for another 27 days. I have installed and configured both Lightstreamer 7.1.1 and Lightstreamer 7.0.3 to my machine, to different TCL ports. I never have more than one server running at a time. I am sending requests via Postman. I have successfully logged in via the POST request format described in the GAIN Capital API documents. I have successfully retrieved a session token via the GET request format described in the GAIN Capital API documents. All attempts to create a Lightstreamer session that I describe moving forward are executed very soon after successfully retrieving a new session token, and using this session token that has just been retrieved. What I am doing: I do not start a Lightstreamer server on my machine beforehand, since I assume that is unnecessary, given the http://push.cityindex.com/ URI suggests that I would be using a GAIN Capital-hosted Lightstreamer server POST request to http://push.cityindex.com/lightstreamer/create_session.txt?LS_protocol=TLCP-2.2.0&LS_cid=mgQkwtwdysogQz2BJ4Ji kOj2Bg&LS_adapter_set=STREAMINGALL&LS_data_adapter=PRICES.PRICE.154297&LS_user={{userxname}}&LS_password={{sessionxtoken}} As you can see in the URI, I am using the following parameters: LS_protocol : TLCP-2.2.0 As per the Lightstreamer documents LS_cid : mgQkwtwdysogQz2BJ4Ji%20kOj2Bg As per the Lightstreamer documents LS_adapter_set : STREAMINGALL As per the GAIN Capital API documents LS_data_adapter : PRICES.PRICE.154297 As per an example given in the GAIN Capital API documents LS_user : [the same username that worked in the previous requests] As per the GAIN Capital API documents LS_password : [the current, un-expired session token that I successfully retrieved from the preceding GET request. The session token was retrieved very soon before I attempt to send this request] As per the GAIN Capital API documents What I get: "Error: connect ETIMEDOUT" Tweaks I have tried: using "LS_adapter" instead of "LS_adapter_set" What I get: "Error: connect ECONNREFUSED" using "TCLP-2.0.0" instead of "TCLP-2.2.0" for the LS_protocol parameter What I get: "Error: connect ETIMEDOUT" using "TCLP-2.2.0 HTTP/1.1" instead of "TCLP-2.2.0" for the LS_protocol parameter I tried this because the examples from the Lightstreamer documents have the "HTTP/1.1", but it is not clear to me how or where exactly I am supposed to enter this information when sending my request. A screenshot of the example to which I am referring is attached as "image.png". I understand that this could just come down to me being too unfamiliar with HTTP. What I get: "Error: connect ETIMEDOUT" putting "HTTP/1.1" in the first line of the body of the request For rationale, see previous tweak bullet What I get: "Error: connect ETIMEDOUT" omitting the LS_data_adapter parameter What I get: "Error: connect ETIMEDOUT" Any advice would be very much appreciated!