forge.dates

Forge API 1

Date rules for scheduled methods: ``@fg.on(fg.dates.month_end())``.

A rule names which days a method runs on. ``trading=True`` counts the instrument's trading days and ``trading=False`` counts calendar days. Nothing here imports ``btpro``.

NameKindSummary
DateRuleclassWhich days a scheduled method runs on.
every_dayfunctionEvery trading day, or every calendar day with ``trading=False``.
month_endfunctionThe last day of each month.
month_startfunctionThe first day of each month.
on_datesfunctionSpecific dates, as ISO text like ``"2026-10-01"`` or ``datetime.date`` values.
week_endfunctionThe last day of each week.
week_startfunctionThe first day of each week.
weekdaysfunctionThe named weekdays, like ``weekdays("mon", "fri")``: mon, tue, wed, thu, fri, sat, sun.