This is partly a question about conventions in beancount, but I'm thinking that the iter_dates function (in utils/dateutils.py) should include the end_date rather than omitting it. See suggested commits in https://bitbucket.org/seltzered/beancount/branch/iter_end_dates .
(reason I'm thinking about this is I'm trying to add a --date-range option into bean-price).