Sha256: 6545b53d805a752d6fb395110fbe0b01ad0ee7b6de719dda6929655593d18917

Contents?: true

Size: 220 Bytes

Versions: 6

Compression:

Stored size: 220 Bytes

Contents

require 'date'

module IEX
  module Resources
    module OHLC
      class TimedPrice < Resource
        property 'price'
        property 'time', transform_with: ->(v) { Time.at(v / 1000.0) }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/resources/ohlc/timed_price.rb
iex-ruby-client-0.4.3 lib/iex/resources/ohlc/timed_price.rb
iex-ruby-client-0.4.2 lib/iex/resources/ohlc/timed_price.rb
iex-ruby-client-0.4.1 lib/iex/resources/ohlc/timed_price.rb
iex-ruby-client-0.4.0 lib/iex/resources/ohlc/timed_price.rb
iex-ruby-client-0.3.3 lib/iex/resources/ohlc/timed_price.rb