Results 1 to 10 of 80

Hybrid View

  1. #1
    Update to the original message below:

    I started looking into the Network Protocol Tutorial and also the General Concepts (which are both very well written in my opinion) and think it will make more sense for me to begin at very basic level implementing the http/https requests.

    Using curl, I can do

    Code:
    curl -v -H "Content-Type: charset=UTF-8" "https://push.cityindex.com/lightstreamer/create_session.txt?LS_op2=create&LS_cid=mgQkwtwdysogQz2BJ4Ji%20kOj2Bg&LS_adapter_set=STREAMINGALL&LS_user=MYUSERID&LS_password=MYSESSIONID" -X GET
    where MYUSERID is my user name and MYSESSIONID is the id of an active session I started before with the rest API. Executing the curl command gives no error and results in the output of the LS session id followed by a steady flow of PROBE messages.

    For the next step, i.e. the subscription, I need to read more of the above-mentioned documents, but I think something like this should be close:

    Code:
    curl -v -H "Content-Type: charset=UTF-8" "https://push.cityindex.com/lightstreamer/control.txt?LS_session=MYLSSESSIONID&LS_table=1&LS_op=add&LS_data_adapter=PRICES&LS_id=154290&LS_schema=LAST_PRICE&LS_mode=MERGE&LS_snapshot=true" -X GET
    where MYLSSESSIONID is the value returned when I created the session.

    When I try the command in a second terminal. it isn't quite working yet as it doesn't return the price, but I get a notice in the first window containing the table number.I suspect that the following are good candidates for entries whose values aren't correct yet: LS_data_adapter, LS_schema, LS_mode, LS_snapshot.


    __________________________________________________ __________________________________________________ ______

    Original message:

    Hello again, Gianluca,

    So after a slight modification of what you sent, it seems I am getting close, I can connect and disconnect, and the terminal output seems to suggest subscribe and unsubscribe work and there is no error message.

    However, there are no prices displayed, and it looks like I can choose some meaningless values for the subscription item and still get no error message. My Cityindex account is a test account and I would be happy to send you a pm with my modified script and credentials if you think you could take a shot at this. Thanks so much!
    Last edited by socalwill; October 21st, 2015 at 08:50 AM. Reason: update

  2. #2
    Power Member
    Join Date
    Feb 2008
    Location
    Siracusa
    Posts
    161
    Hi William,

    it would be helpful some screenshot from your side of the running script. We could also some additional log to check what happens.

    Thanks!
    Gianluca

 

 

Similar Threads

  1. Python Client Library for Lightstreamer
    By Alessandro in forum Client SDKs
    Replies: 1
    Last Post: December 18th, 2014, 05:15 PM
  2. how to comunicate lightstreamer server by python
    By keyan in forum Client SDKs
    Replies: 4
    Last Post: December 18th, 2014, 05:12 PM
  3. Replies: 2
    Last Post: January 5th, 2012, 08:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 04:44 PM.