Hi,
I noticed that schedule_function misses end of December 2013 for some reason.
Here is how I tried to use it:
def initialize(context):
context.stock = symbol('AAPL')
schedule_function(month_start, date_rules.month_start())
schedule_function(month_end, date_rules.month_end())
def month_start(context, data):
log.info("month_start has been called on %s" % get_datetime())
def month_end(context, data):
log.info("month_end has been called on %s" % get_datetime())
log output:
2013-11-29 month_end: 12 INFO month_end has been called on 2013-11-29 00:00:00+00:00
2013-12-02 month_start: 9 INFO month_start has been called on 2013-12-02 00:00:00+00:00
2014-01-02 month_start: 9 INFO month_start has been called on 2014-01-02 00:00:00+00:00
2014-01-31 month_end: 12 INFO month_end has been called on 2014-01-31 00:00:00+00:00
Am I missing something obvious?
Regards,
Ed