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``.
| Name | Kind | Summary |
|---|---|---|
| DateRule | class | Which days a scheduled method runs on. |
| every_day | function | Every trading day, or every calendar day with ``trading=False``. |
| month_end | function | The last day of each month. |
| month_start | function | The first day of each month. |
| on_dates | function | Specific dates, as ISO text like ``"2026-10-01"`` or ``datetime.date`` values. |
| week_end | function | The last day of each week. |
| week_start | function | The first day of each week. |
| weekdays | function | The named weekdays, like ``weekdays("mon", "fri")``: mon, tue, wed, thu, fri, sat, sun. |