trading_agent.terminal.screens.activity_screen
¶
The Activity page: every event of today, from every desk, newest first, with live events added as they arrive.
It copies the web page's ActivityPage.tsx: a filter by desk, a text search, and routine events hidden unless asked for. Up to 600 rows are shown.
Typical usage example:
app.push_screen(ActivityScreen('general'))
ActivityScreen
¶
Bases: PageScreen
The Activity page.
Creates the page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
desk_name
|
str
|
The desk the chat shows. |
required |
Source code in src/trading_agent/terminal/screens/activity_screen.py
compose_page
¶
Builds the filter line, the search box and the feed.
Yields:
| Type | Description |
|---|---|
Widget
|
The filters, the search box and the table. |
Source code in src/trading_agent/terminal/screens/activity_screen.py
on_mount
¶
Sets up the table, then reads the journals.
Source code in src/trading_agent/terminal/screens/activity_screen.py
refresh_page
async
¶
Reads today's journal of every desk and the events of no desk.
Source code in src/trading_agent/terminal/screens/activity_screen.py
take_event
¶
Adds a live event to the feed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
dict[str, Any]
|
The event. |
required |
Source code in src/trading_agent/terminal/screens/activity_screen.py
on_input_changed
¶
Filters the feed by the search text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
Changed
|
The new search text. |
required |
action_next_filter_desk
¶
Cycles the desk filter through all desks and each desk.
Source code in src/trading_agent/terminal/screens/activity_screen.py
action_toggle_routine
¶
Shows or hides routine events, such as turn starts and model usage.