Hello,
I am implementing a simple momentum strategy that rebalances at the end of every month. I am also getting some fundamental data, which I am calling in before_trading_start, which gets called every day which results in a lot of unnecessary queries. I would like to ensure I only call the query on the last day of the month. Could someone provide an example of this calculation? I believe this can be done relatively easily in python by importing the calendar and/or dateutil.relativedelta libraries, but Quantopian prevents those libraries from being imported. Is there another way?
Regards,
Mark