lib/ig_markets/dealing_platform/account_methods.rb
def transactions(options)
        options[:type] ||= :all

        unless %i[all all_deal deposit withdrawal].include? options[:type]
          raise ArgumentError, "invalid transaction type: #{options[:type]}"
        end

        tranaactions_request build_url_parameters(options)
      end
# Returns transactions for this account in the specified time range.
#
# @param [Hash] options The options hash.
# @option options [:all, :all_deal, :deposit, :withdrawal] :type The type of transactions to return. Defaults to
#                 `:all`.
# @option options [Time] :from The start of the period to return transactions for. Required.
# @option options [Time] :to The end of the period to return transactions for. Defaults to `Time.now`.
#
# @return [Array<Transaction>]
Returns transactions for this account in the specified time range.
Returns transactions for this account in the specified time range .
def transactions(options)
        options[:type] ||= :all
        unless %i[all all_deal deposit withdrawal].include? options[:type]
          raise ArgumentError, "invalid transaction type: #{options[:type]}"
        end
        tranaactions_request build_url_parameters(options)
      end
def transactions ( options ) options [ :type ] ||= :all unless %i[ all all_deal deposit withdrawal ] . include? options [ :type ] raise ArgumentError , "invalid transaction type: #{options[:type]}" end tranaactions_request build_url_parameters ( options ) end
Returns transactions for this account in the specified time range.
Returns transactions for this account in the specified time range .
None
Array<Transaction>
options
:to The end of the period to return transactions for. Defaults to `Time.now`.
: to The end of the period to return transactions for . Defaults to ` Time . now ` .
options The options hash.
options The options hash .