docs: def get_gains_losses(changes):
      """ Categorizes changes into gains and losses
  
      Args:
          changes: List of floats of price changes between entries in JSON.
  
      Returns:
          Dict of changes with keys 'gains' and 'losses'.
          All values are positive.
      """
      res = {'gains': [], 'losses': []}
      for change in changes:
          if change > 0:
              res['gains'].append(change)
          else:
              res['losses'].append(change * -1)
      logger.debug('Gains: {0}'.format(res['gains']))
      logger.debug('Losses: {0}'.format(res['losses']))
      return res