trading_agent.runtime.no_model_turn_runner
¶
A turn runner for a desk that has no model connected yet.
It lets the queue, the event bus and the gateway be tested end to end before any model is involved.
Typical usage example:
desk = DeskRuntime(desk_configuration, event_bus, NoModelTurnRunner())
NoModelTurnRunner
¶
Bases: TurnRunner
Answers every trigger by saying that no model is connected.
run_turn
async
¶
Replies that no model is connected, quoting the trigger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
trigger
|
Trigger
|
The reason for the turn. |
required |
Returns:
| Type | Description |
|---|---|
TurnResult
|
A reply that names the trigger's source and text. |