trading_agent.tools.cron_list_tool
¶
The cron_list tool: lists the desk's scheduled jobs and their next runs.
Typical usage example:
tool = CronListTool(store, built_in_jobs, calendar, hours)
CronListTool
¶
Bases: Tool
Lists the jobs.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
CronJobStore
|
The desk's jobs. |
required |
built_in_jobs
|
Sequence[CronJob]
|
The heartbeat and rollover. |
required |
calendar
|
MarketCalendar
|
Decides trading days. |
required |
hours
|
ExchangeHours
|
Decides market hours. |
required |
Source code in src/trading_agent/tools/cron_list_tool.py
run
async
¶
Lists every job with its next run.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
NoArguments
|
No arguments. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
One line per job. |