trading_agent.tools.cancel_price_alert_tool
¶
The cancel_price_alert tool: removes one of the desk's price alerts.
Typical usage example:
tool = CancelPriceAlertTool(store)
CancelPriceAlertArguments
¶
Bases: BaseModel
The arguments of cancel_price_alert.
Attributes:
| Name | Type | Description |
|---|---|---|
alert_id |
str
|
The alert's id, as set_price_alert listed it. |
CancelPriceAlertTool
¶
Bases: Tool
Removes a price alert.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
PriceAlertStore
|
The desk's alerts. |
required |
Source code in src/trading_agent/tools/cancel_price_alert_tool.py
run
async
¶
Removes the alert.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
CancelPriceAlertArguments
|
The alert's id. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
A confirmation with the alerts left, or why nothing was removed. |