trading_agent.terminal.widgets.outputs_card
¶
The side panel's Outputs card: pictures and documents the desk sent today, newest first.
Choosing one downloads it and opens it with the desktop's default program.
Typical usage example:
card = OutputsCard(opener) card.show('general', events)
OutputsCard
¶
Bases: SideCard
The Outputs card.
Creates the card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
opener
|
AttachmentOpener
|
Downloads and opens the files. |
required |
collapsed
|
bool
|
Whether it starts folded. |
False
|
Source code in src/trading_agent/terminal/widgets/outputs_card.py
show
¶
Lists the files in the desk's messages of today.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
desk_name
|
str
|
The desk. |
required |
events
|
Sequence[dict[str, Any]]
|
The desk's events of today. |
required |
Source code in src/trading_agent/terminal/widgets/outputs_card.py
on_option_list_option_selected
¶
Opens the chosen file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
OptionSelected
|
The choice. |
required |