BaseScheduler
Ancestors
abc.ABC
Descendants
systematica.portfolio.schedulers.reports.ReportSchedulersystematica.portfolio.schedulers.trades.TradeScheduler
Static methods
pull_data
| Name | Type | Default | Description |
|---|---|---|---|
loader | vbt.Data | -- | Loader class. |
params | tp.Kwargs | -- | Loader parameters. |
| Type | Description |
|---|---|
vbt.Data | A vbt.Data object containing historical data for each symbol. |
update_data
| Name | Type | Default | Description |
|---|---|---|---|
data | vbt.Data | -- | Current data object. |
freq | str | -- | Frequency to resample data to. |
| Type | Description |
|---|---|
vbt.Data | A vbt.Data object containing historical data for each symbol. |
run_task
SlackMessenger by default.
Specify a particular time that the job should be run at. The format
must make sense given how often the job is repeating. More info
could be found in schedule.
- For daily jobs ->
HH:MM:SSorHH:MM - For hourly jobs ->
MM:SSor:MM - For minute jobs ->
:SS
| Name | Type | Default | Description |
|---|---|---|---|
template | str | -- | Template name. |
loader_cls | vbt.Data | -- | Data loader. |
loader_params | tp.Kwargs | -- | Data loader params. |
model_cls | tp.Any | -- | Model class. |
all_params | tp.Kwargs | -- | Model params. |
timeframe | pd.Timedelta | 1h | Timeframe used in the template for loading data. Defaults to 1h. |
offset | str | None | Optional offset for hourly/multi-hourly jobs. If None, it defaults to :00. Defaults to None. |
channel | str | None | Messenger channel to use. The default is C08KQFF50GH. |
kwargs | tp.Kwargs | -- | Additional key-word arguments. |
| Type | Description |
|---|---|
schedule.Scheduler | Scheduler. |
run_thread
SlackMessenger by default.
Specify a particular time that the job should be run at. The format
must make sense given how often the job is repeating. More info
could be found in schedule.
- For daily jobs ->
HH:MM:SSorHH:MM - For hourly jobs ->
MM:SSor:MM - For minute jobs ->
:SS
| Name | Type | Default | Description |
|---|---|---|---|
template | str | -- | Template name. |
loader_cls | vbt.Data | -- | Data loader. |
loader_params | tp.Kwargs | -- | Data loader params. |
model_cls | tp.Any | -- | Model class. |
all_params | tp.Kwargs | -- | Model params. |
timeframe | pd.Timedelta | 1h | Timeframe used in the template for loading data. Defaults to 1h. |
offset | str | None | Optional offset for hourly/multi-hourly jobs. If None, it defaults to :00. Defaults to None. |
channel | str | None | Messenger channel to use. The default is C08KQFF50GH. |
kwargs | tp.Kwargs | -- | Additional key-word arguments. |
| Type | Description |
|---|---|
schedule.Scheduler | Scheduler. |
run_process
SlackMessenger by default.
Specify a particular time that the job should be run at. The format
must make sense given how often the job is repeating. More info
could be found in schedule.
- For daily jobs ->
HH:MM:SSorHH:MM - For hourly jobs ->
MM:SSor:MM - For minute jobs ->
:SS
| Name | Type | Default | Description |
|---|---|---|---|
template | str | -- | Template name. |
loader_cls | vbt.Data | -- | Data loader. |
loader_params | tp.Kwargs | -- | Data loader params. |
model_cls | tp.Any | -- | Model class. |
all_params | tp.Kwargs | -- | Model params. |
timeframe | pd.Timedelta | 1h | Timeframe used in the template for loading data. Defaults to 1h. |
offset | str | None | Optional offset for hourly/multi-hourly jobs. If None, it defaults to :00. Defaults to None. |
channel | str | None | Messenger channel to use. The default is C08KQFF50GH. kwargs Additional key-word arguments. |
| Type | Description |
|---|---|
schedule.Scheduler | Scheduler. |
Methods
execute
| Name | Type | Default | Description |
|---|---|---|---|
args | tuple | -- | Positional arguments for the execute method. |
kwargs | tp.Kwargs | -- | Keyword arguments for the execute method. |
job
execute method to perform the scheduled task.
It also logs the elapsed time and peak RAM usage after execution.
