lib/ig_markets/dealing_platform/account_methods.rb
def activities_request(url_parameters)
        activities = []

        url = 'history/activity'

        while url
          request_result = history_request url: url, api_version: API_V3, url_parameters: url_parameters
          activities += @dealing_platform.instantiate_models(Activity, request_result.fetch(:activities))

          url = request_result.fetch(:metadata).fetch(:paging).fetch(:next)
          url_parameters = {}
        end

        activities
      end
# Performs repeated requests to the IG Markets API to retrieve all pages of activities returned by the given set
# of URL parameters.
Performs repeated requests to the IG Markets API to retrieve all pages of activities returned by the given set
of URL parameters.
Performs repeated requests to the IG Markets API to retrieve all pages of activities returned by the given set of URL parameters .
def activities_request(url_parameters)
        activities = []
        url = 'history/activity'
        while url
          request_result = history_request url: url, api_version: API_V3, url_parameters: url_parameters
          activities += @dealing_platform.instantiate_models(Activity, request_result.fetch(:activities))
          url = request_result.fetch(:metadata).fetch(:paging).fetch(:next)
          url_parameters = {}
        end
        activities
      end
def activities_request ( url_parameters ) activities = [ ] url = 'history/activity' while url request_result = history_request url : url , api_version : API_V3 , url_parameters : url_parameters activities += @dealing_platform . instantiate_models ( Activity , request_result . fetch ( :activities ) ) url = request_result . fetch ( :metadata ) . fetch ( :paging ) . fetch ( :next ) url_parameters = { } end activities end
Performs repeated requests to the IG Markets API to retrieve all pages of activities returned by the given set
of URL parameters.
Performs repeated requests to the IG Markets API to retrieve all pages of activities returned by the given set of URL parameters .
url_parameters