lib/ig_markets/dealing_platform/account_methods.rb
def tranaactions_request(url_parameters)
        transactions = []

        page_number = 1

        loop do
          request_result = history_request url: 'history/transactions', api_version: API_V2,
                                           url_parameters: url_parameters.merge(pageNumber: page_number)

          transactions += @dealing_platform.instantiate_models Transaction, request_result.fetch(:transactions)

          break if page_number == request_result.fetch(:metadata).fetch(:page_data).fetch(:total_pages)

          page_number += 1
        end

        transactions
      end
# Performs repeated requests to the IG Markets API to retrieve all pages of transactions returned by the given set
# of URL parameters.
Performs repeated requests to the IG Markets API to retrieve all pages of transactions returned by the given set
of URL parameters.
Performs repeated requests to the IG Markets API to retrieve all pages of transactions returned by the given set of URL parameters .
def tranaactions_request(url_parameters)
        transactions = []
        page_number = 1
        loop do
          request_result = history_request url: 'history/transactions', api_version: API_V2,
                                           url_parameters: url_parameters.merge(pageNumber: page_number)
          transactions += @dealing_platform.instantiate_models Transaction, request_result.fetch(:transactions)
          break if page_number == request_result.fetch(:metadata).fetch(:page_data).fetch(:total_pages)
          page_number += 1
        end
        transactions
      end
def tranaactions_request ( url_parameters ) transactions = [ ] page_number = 1 loop do request_result = history_request url : 'history/transactions' , api_version : API_V2 , url_parameters : url_parameters . merge ( pageNumber : page_number ) transactions += @dealing_platform . instantiate_models Transaction , request_result . fetch ( :transactions ) break if page_number == request_result . fetch ( :metadata ) . fetch ( :page_data ) . fetch ( :total_pages ) page_number += 1 end transactions end
Performs repeated requests to the IG Markets API to retrieve all pages of transactions returned by the given set
of URL parameters.
Performs repeated requests to the IG Markets API to retrieve all pages of transactions returned by the given set of URL parameters .
url_parameters