Jump to content

Search the Community

Showing results for tags 'physicsman'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Gain Capital API FAQ
    • General Questions and Discussion

Found 1 result

  1. 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!
×