trading_agent.tools.broker_tool
¶
The shallow base class of the read-only trading tools.
Typical usage example:
class GetQuoteTool(BrokerTool): ...
BrokerTool
¶
Bases: Tool
A tool that reads from UBI through tradingmachine.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reader
|
BrokerReader
|
The shared reader of UBI. |
required |
formatter
|
ResultFormatter
|
Turns tradingmachine's answers into text. |
required |