trading_agent.tools.get_quote_tool
¶
The get_quote tool: the live quote of one instrument, with market depth.
Typical usage example:
tool = GetQuoteTool(reader, formatter)
GetQuoteTool
¶
Bases: BrokerTool
Reads one instrument's quote.
Source code in src/trading_agent/tools/broker_tool.py
run
async
¶
Reads the quote.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
InstrumentArguments
|
The instrument. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
The quote, or an error. |