Sha256: 7cd5fa0e26a1953fab4087c0e960a37f0d63c4964413bfd337336649c0367dee

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

require_relative 'base'

module IEX
  module Resources
    class LargestTrades < Resource
      property 'price'
      property 'size'
      property 'time'
      property 'time_label', from: 'timeLabel'
      property 'venue'
      property 'venue_name', from: 'venueName'

      def self.get(stock_symbol)
        Base.symbol(stock_symbol) do
          IEX::Api::LargestTrades.get(stock_symbol).map do |data|
            new data
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/resources/largest_trades.rb