def historical_prices(options)
      validate_historical_prices_options options

      options[:max] = options.delete(:number) if options.key? :number
      options[:from] = options[:from].utc.strftime '%FT%T' if options.key? :from
      options[:to] = options[:to].utc.strftime '%FT%T' if options.key? :to

      @dealing_platform.instantiate_models HistoricalPriceResult, historical_prices_request(options)
    end
def historical_prices(options)
      validate_historical_prices_options options

      options[:max] = options.delete(:number) if options.key? :number
      options[:from] = options[:from].utc.strftime '%FT%T' if options.key? :from
      options[:to] = options[:to].utc.strftime '%FT%T' if options.key? :to

      @dealing_platform.instantiate_models HistoricalPriceResult, historical_prices_request(options)
    end
Returns historical prices for this market at a given resolution, either the most recent prices by specifying the
 `:number` option, or those from a date range by specifying the `:from` and `:to` options.

 @param [Hash] options The options hash.
 @option options [:minute, :minute_2, :minute_3, :minute_5, :minute_10, :minute_15, :minute_30, :hour, :hour_2,
                  :hour_3, :hour_4, :day, :week, :month] :resolution The resolution of the prices to return.
                 Required.
 @option options [Integer] :number The number of historical prices to return. If this is specified then the `:from`
                 and `:to` options must not be specified.
 @option options [Time] :from The start of the period to return prices for.
 @option options [Time] :to The end of the period to return prices for.

 @return [HistoricalPriceResult]