Results 1 to 10 of 18

Threaded View

  1. #1

    R Client for lightstreamer

    Hi. I have setup an R client for lightstreamer towards IG,
    to subscribe on 1 minute OHLCV (Open, High, Close, Volume) data.

    Background to move into lightstreamer is that IG:s REST API
    sends to many NULL in their content, resulting in that my system removes 30% OHLC lines.

    I have a client lightstreaming working that looks as below.
    Since this is my first time to setup a client following the TLCP,
    i am not familiar with how the stream exactly should look like.
    I thought that if I subscribe on 1 minutes data I would get PROBE-lines and the OHLCV data,
    but I get also all the data changes in between.

    My parameter settings:

    LS_data_adapterQUOTE ADAPTER

    Question1) Could you please confirm if a subscription of 1 minutes data should have data in between the 1 minutes screenshots?

    Question2) Above each trading-data line there is a character/number combination.
    I do not find in the documentation what they mean. Could you please clarify or refer where
    to find explanation.

    Question3) Is it correct to assume that an empty filed between two "pipe" characters should be
    interpreted as that value is unchanged thus if having a dataframe one should populate the unchanged value with previous changed value.

    #### Extraction from the data stream

    << C
    << 1,1||||||1

    << 7
    << PROBE

    << 1D
    << 1,1|1497276480000|$|$|$|$|0

    << 27
    << 1,1||1639.75|1639.75|1639.63|1639.63|

    << 19
    << 1,1|||1639.88||1639.88|

    << 19
    << 1,1|||1640.13||1640.13|

    << 19
    << 1,1|||1640.38||1640.25|

    << 12
    << 1,1|||||1640.38|

    << 12
    << 1,1|||||1640.13|


    My final goal is to have the data as below, in a time-series format. (called xts in R).
    I am aware that I might be need to decode the pipe-separated list-of-values.

    [open], [high], [low], [close], [volume]
    line1-1min resolution - [streamvalue - open], [streamvalue - high], [streamvalue - low], [streamvalue - close], [streamvalue - volume]
    line2-1min resolution - [streamvalue - open], [streamvalue - high], [streamvalue - low], [streamvalue - close], [streamvalue - volume],

    / Regards, Alonso
    Last edited by toolbox; June 12th, 2017 at 03:49 PM.




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 01:19 PM.