lib/ig_markets/dealing_platform/streaming_methods.rb
def build_chart_ticks_subscription(epics)
        items = Array(epics).map { |epic| "CHART:#{epic}:TICK" }
        fields = %i[bid day_high day_low day_net_chg_mid day_open_mid day_perc_chg_mid ltp ltv ofr ttv
                    utm]

        build_subscription items: items, fields: fields, mode: :distinct
      end
# Creates a new Lightstreamer subscription for chart tick data for the specified EPICs. The returned
# {Streaming::Subscription} must be passed to {#start_subscriptions} in order to actually start streaming its
# data.
#
# @param [Array<String>] epics The EPICs of the markets to create a chart tick data subscription for.
#
# @return [Streaming::Subscription]
Creates a new Lightstreamer subscription for chart tick data for the specified EPICs. The returned
{Streaming::Subscription} must be passed to {#start_subscriptions} in order to actually start streaming its
data.
Creates a new Lightstreamer subscription for chart tick data for the specified EPICs . The returned { Streaming :: Subscription } must be passed to { #start_subscriptions } in order to actually start streaming its data .
def build_chart_ticks_subscription(epics)
        items = Array(epics).map { |epic| "CHART:#{epic}:TICK" }
        fields = %i[bid day_high day_low day_net_chg_mid day_open_mid day_perc_chg_mid ltp ltv ofr ttv
                    utm]
        build_subscription items: items, fields: fields, mode: :distinct
      end
def build_chart_ticks_subscription ( epics ) items = Array ( epics ) . map { | epic | "CHART:#{epic}:TICK" } fields = %i[ bid day_high day_low day_net_chg_mid day_open_mid day_perc_chg_mid ltp ltv ofr ttv utm ] build_subscription items : items , fields : fields , mode : :distinct end
Creates a new Lightstreamer subscription for chart tick data for the specified EPICs.
Creates a new Lightstreamer subscription for chart tick data for the specified EPICs .
None
Streaming::Subscription
epics
epics The EPICs of the markets to create a chart tick data subscription for.
epics The EPICs of the markets to create a chart tick data subscription for .