code: def get_splits_in_period(self, start: Datum, end: Datum) -> List[Split]:
          
          # from gnucash_portfolio.lib import generic
  
          query = (
              self.book.session.query(Split)
              .join(Transaction)
              .filter(Split.account == self.account,
                      Transaction.post_date >= start.value.date(),
                      Transaction.post_date <= end.value.date()
                      )
          )
          # sql = generic.get_sql(query)
          return query.all()
docs: returns splits only up to the given date