SessionPreset
forge.sessionsclassSince Forge API 1
Signaturepython
forge.sessions.SessionPreset(*,name: str,hours: str = '',tz: str = '',days: tuple[str, ...] = ('mon', 'tue', 'wed', 'thu', 'fri'),kind: Literal['window', 'venue'] = 'window',symbol: str | None = None) -> NoneA named window of hours in a time zone, or a symbol's own venue session.
Parameters
| Name | Type | Default |
|---|---|---|
| name | str | |
| hours | str | '' |
| tz | str | '' |
| days | tuple[str, ...] | ('mon', 'tue', 'wed', 'thu', 'fri') |
| kind | Literal['window', 'venue'] | 'window' |
| symbol | str | None | None |
hours is "HH:MM-HH:MM" in tz, on days. A window may wrap past midnight. A
venue
preset has no hours of its own: every symbol trades in its market's hours, which Forge applies
to
every run.