lib/tmt/commands/tasty_dxfeed.rb
# only return active futures symbols if after stock/etf trading hours (30..60 min cushion on either end)
only return active futures symbols if after stock/etf trading hours (30..60 min cushion on either end)
only return active futures symbols if after stock / etf trading hours ( 30 .. 60 min cushion on either end )
def execute(_input: $stdin, output: $stdout) 
        return output.puts Trade.active.futures.map(&:symbols).flatten.compact.join(',') if after_hours?
        output.puts (Trade.active.map(&:symbols) + Trade.active.stocks.map(&:ticker)).flatten.compact.join(',')
      end
def execute ( _input : $stdin , output : $stdout ) return output . puts Trade . active . futures . map ( & :symbols ) . flatten . compact . join ( ',' ) if after_hours? output . puts ( Trade . active . map ( & :symbols ) + Trade . active . stocks . map ( & :ticker ) ) . flatten . compact . join ( ',' ) end
only return active futures symbols if after stock/etf trading hours (30..60 min cushion on either end)
only return active futures symbols if after stock / etf trading hours ( 30 .. 60 min cushion on either end )
# rubocop:disable Metrics/AbcSize
_input
<not_specific>
output
<not_specific>