trading_agent.terminal.widgets.event_step_view
¶
An event shown inside a turn or on its own, such as a risk decision, an order or a fill.
Typical usage example:
view = EventStepView(event)
EventStepView
¶
Bases: Static
One event as a line in its tone's colour, with its detail below.
Creates the line.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event
|
dict[str, Any]
|
The event. |
required |
with_time
|
bool
|
Whether to start with the event's India clock time, for events outside turns. |
False
|