Approach 2: Instance Methods

  • The ProfileFetcher can be constructed and passed to TradeCalculator
  • When calculating trades, our tool calls the instance method

22 / 31